I have a dataframe like below.
# A tibble: 2,500 x 3
ipv lat lon
<int> <dbl> <dbl>
1 230 53.3 76.8
2 222 53.3 76.8
3 258 53.3 76.8
4 232 53.3 76.8
5 207 53.3 76.8
6 238 53.3 76.8
7 218 53.3 76.8
8 218 53.3 76.8
9 249 53.3 76.8
10 237 53.3 76.9
# … with 2,490 more rows
I drew a picture for this dataframe using the code below.
p1 <- ggplot(data=df, mapping=(aes(x=lon,y=lat,colour=ipv,fill=ipv))) +
geom_tile() +
coord_fixed()
ggsave("test.png", plot=p1)
As a result, the figure below was created.
When using geom_tile, why does it come out as a dot instead of a tile?
Thanks for reading.