I want to create a map with ggmap where you can see which species found where and how many times. The "how many" should be represented by the size of the point/bubble. But I could imagine representing by colour (like a heatmap) would also be fine, and then seperating the species by shaping the points. What I've got so far: For the background map:
B<-get_map(location = c(lon = -56.731405, lat =-61.4831206),
zoom = 6,
scale = "auto",
maptype = c("terrain"),
source = c("google"))
For the scatter plot:
D<-ggmap(B) +
geom_point(data=Anatomy,
aes(x=Anatomy$Longitude,y=Anatomy$Latitude,
color=Species,
size=??) +
scale_size_continuous(range=c(1,12))
My data=Anatomy looks like this:
Species Lat Long Station
1 A 50 60 I
2 A 50 60 I
3 A 40 30 II
4 B 50 60 I
5 B 40 30 II
6 C 50 60 I
7 C 10 10 III
8 C 10 10 III
9 C 40 30 II
My idea was to use dplyr and filter by rows and sum the categories somehow. Or what do you think? And do you think this is the best way to present this data?