stat_sf requires the following missing aesthetics: geometry

Issue #9 new
Former user created an issue

There is a conflict with {ggplot2} somewhere. If I attach {ggtern}, geom_sf() return an error. The error does not appear without {ggtern}.
Please find below a reproducible example :

library(sf)
library(ggplot2)
library(dplyr)
library(rnaturalearth)
library(ggtern)
ne_world <- rnaturalearth::ne_countries(scale = 50, returnclass = "sf")

world_eqe <- ne_world %>% 
  st_transform("+proj=eqearth +wktext") 

world_eqe %>%
  ggplot2::ggplot() +
  ggplot2::geom_sf()

Comments (0)

  1. Log in to comment