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

missing argument using gggeo_scale #17

Closed
mcranium opened this issue Nov 15, 2019 · 3 comments
Closed

missing argument using gggeo_scale #17

mcranium opened this issue Nov 15, 2019 · 3 comments

Comments

@mcranium
Copy link

I installed the package just as suggested in the readme file. Then I tried to replicate the examples on readme file

at

p <- ggplot() + geom_point(aes(x = runif(1000, 0, 8), y = runif(1000, 0, 541))) + scale_y_reverse() + coord_cartesian(xlim = c(0, 8), ylim = c(0,541), expand = FALSE) + theme_classic() gggeo_scale_old(p, pos = "left", rot = 90)

I got the error message

Error in gggeo_scale(p, pos = "left", rot = 90) : unused argument (rot = 90)

When I used the gggeo_scale_old function the error message did not appear.

Running R version 3.6.1 on Ubuntu 18.04 via RStudio.

Best wishes,
Mario

@willgearty
Copy link
Owner

Hmm...can you make sure you have the most recent version of the package? Running the following code works fine for me:

p <- ggplot() + geom_point(aes(x = runif(1000, 0, 8), y = runif(1000, 0, 541))) +
  scale_y_reverse() +
  coord_cartesian(xlim = c(0, 8), ylim = c(0,541), expand = FALSE) +
  theme_classic()
gggeo_scale(p, pos = "left", rot = 90)

@mcranium
Copy link
Author

I just tried it again after rebooting my system (no other changes to the R environment), which should not have been necessary, I guess. Now everything works out fine.

@willgearty
Copy link
Owner

Weird, glad it works 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