[R] MAP HELP
drj|m|emon @end|ng |rom gm@||@com
Tue Apr 7 11:52:01 CEST 2020
I think that replacing the "geom_point" argument with "geom_text" will
do what you want. Unfortunately I can't get an example to work (as
usual) so I'm copying this back the the R help list in the hope that
someone will provide the answer for you.
On Tue, Apr 7, 2020 at 7:29 PM anjaly menon <anjalygmenon9 using gmail.com> wrote:
> I'll show you the dataset with long and lat. There are 184 observations. The number of fishes collected is one per observation.
> I am attaching the codes too
> world <- ne_countries(scale = "medium", returnclass = "sf")
> geo1 <- read_csv(file = "geo1.csv")
> varNumber <- geo1 %>% group_by(lat, long) %>% summarize(Number_sum = sum (Number))
> ggplot(data = world) +
> geom_sf() +
> xlab("Longitude") + ylab("Latitude") +
> coord_sf(xlim = c(15, 37), ylim = c(69, 76), expand = FALSE) +
> geom_point(data = varNumber, aes(x = long, y = lat, size = Number_sum))
> My task is "how many fish are sampled in each location (plotting symbol sizes by number)
> I am not sure whether what I did on my map is correct or not.
> Could you please improve the script and make those changes?
> Instead of the dots, numbers!
More information about the R-help