VeroIarrachtai / Abies_vs_ozone

In this repository you can get all the data and scripts to run Abies vs Ozone's Project
2 stars 1 forks source link

function "ggplot2" does not load #4

Open VeroIarrachtai opened 4 years ago

VeroIarrachtai commented 4 years ago

I have a error in script named "Maps.Rmd" here

ggplot2(data = world)+
  geom_sf() +
  annotation_scale(location = "bl", width_hint = 0.25) +
  annotation_north_arrow(location = "bl", which_north = "true", 
                         pad_x = unit(0.25, "in"), pad_y = unit(0.25, "in"),
                         style = north_arrow_fancy_orienteering, height = unit(1.25, "cm")) +
  coord_sf(xlim = c(-116.15, -75.12), ylim = c(10.65, 33.97))+
  theme_dark()+
  annotate("point", x = -99.301, y = 19.285, colour = "#4cacdb", size = 2)+
  labs(x="", y="")

I get the next error :

Error in ggplot2(data = world) : 
  no se pudo encontrar la función "ggplot2"
AliciaMstt commented 4 years ago

l think the function is ggplot not ggplot2 (that is the package).