I have some data that looks like this:
>show(recruitment_info)
Centre Lat Long GroupA GroupB
1 CentreA 51.51770 -0.100400 907 47
2 CentreB 52.48947 -1.898575 1910 116
3 CentreC 51.45451 -2.587910 4419 277
I want to plot a map of the UK and then add points for each centre (labelled with Centre in column 1). I also want the point size to represent the values in GroupA and GroupB - I don't mind if GroupA and GroupB need to separate plots, that I then align horizontally.
I have tried using map_data and map.
UK <- map_data(map = "world", region = "UK")
ggplot(data = UK, aes(x = long, y = lat, group = group)) +
geom_polygon() +
coord_map() +
geom_point(aes(x=recruitment_info$Long,y=recruitment_info$Lat)) +
geom_text(aes(label=recruitment_info$Centre),hjust=0, vjust=0)
UK <- map('worldHires',c('UK','Ireland'), xlim=c(-11,3), ylim=c(49,60.9))
ggplot(data = UK, aes(x = x, y = y)) +
geom_point(aes(x = recruitment_info$Long, y = recruitment_info$Lat),col=2,pch=18)
Unfortunately I cannot get it to work for me.
If anyone is able to help, I would really appreciate it!
Thank you
