davidsjoberg / ggsankey

Make sankey, alluvial and sankey bump plots in ggplot
Other
268 stars 32 forks source link

could not find function "sum_" with geom_sankey_bump() #1

Closed gkaramanis closed 3 years ago

gkaramanis commented 3 years ago

I get this error when I run the example for geom_sankey_bump()

Problem with `summarise()` input `gdp`.
x could not find function "sum_"
ℹ Input `gdp` is `(sum_(pop * gdpPercap)/1e+09) %>% round(0)`.
ℹ The error occurred in group 1: continent = "Africa", year = 1952.
Backtrace:
  1. base::source("~/.active-rstudio-document", echo = TRUE)
 13. base::.handleSimpleError(...)
 14. dplyr:::h(simpleError(msg, call))
Run `rlang::last_trace()` to see the full context.

geom_sankey() works like a charm, by the way! 😀

davidsjoberg commented 3 years ago

Oops. I fix that