everyone! I am new to r. I have a disease rate data from different counties and I want to visualize them on the map.
I follow the instructions on this website:https://socviz.co/maps.html
I wanted to try their example first but R gave me a wrong message:
> p <- ggplot(data = county_full,
mapping = aes(x = long, y = lat,
fill = pop_dens,
group = group))
Error in ggplot(data = county_full, mapping = aes(x = long, y = lat, : could not find function "ggplot"
I want to install the ggplot but it said:
Warning in install.packages :package ‘ggplot’ is not available (for R version 3.6.1)
I don't know how to modify the code so that I can use ggplot2 to try their examples.
Thanks!