Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for theme_fivethirtyeight errors #81

Closed
carlganz opened this issue Mar 13, 2017 · 1 comment
Closed

Example for theme_fivethirtyeight errors #81

carlganz opened this issue Mar 13, 2017 · 1 comment

Comments

@carlganz
Copy link

From docs:

library(ggthemes)
p <- ggplot(mtcars) +
     geom_point(aes(x = wt, y = mpg, colour=factor(gear))) +
     facet_wrap(~am) +
     geom_smooth(method = "lm", se = FALSE) +
     scale_color_fivethirtyeight() +
     theme_fivethirtyeight()

p

Gives error

I suspect the aes should be inside the ggplot instead of the geom, but perhaps I am being naive.

Regards

@jrnold jrnold closed this as completed in 53f87ca Mar 14, 2017
@jrnold
Copy link
Owner

jrnold commented Mar 14, 2017

Thanks! You were right. It's fixed in the development version now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants