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

add angle attribute to plot_grid function #89

Open
rafapereirabr opened this issue Feb 15, 2018 · 6 comments
Open

add angle attribute to plot_grid function #89

rafapereirabr opened this issue Feb 15, 2018 · 6 comments

Comments

@rafapereirabr
Copy link

It would be super helpful if the attribute angle were added to the plot_grid function, so the user can set the angle of the label.

@billdenney
Copy link
Contributor

As a generalization of this, is it possible to provide an element_text that defines the label formatting?

@clauswilke
Copy link
Contributor

I’m happy to consider a pull request that does this in a reasonably clean and straightforward way, without breaking existing code.

Note that the upcoming ggplot2 2.3.0 will have native support for labels and those can be styled via element_text as usual.

@billdenney
Copy link
Contributor

billdenney commented Jun 20, 2018

If it's coming soon, I don't feel a strong need for it sooner. (I don't know about @rafapereirabr.)

@rafapereirabr
Copy link
Author

Thanks for the heads up @clauswilke . I agree with @billdenney . Let's wait for the ggplot2 2.3.0 update and see if it will solve the issue.

@clauswilke
Copy link
Contributor

library(ggplot2)
ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
  geom_point() +
  labs(tag = "A") +
  theme(plot.tag = element_text(angle = 45))

Created on 2018-06-20 by the reprex package (v0.2.0).

@rafapereirabr
Copy link
Author

Thanks, @clauswilke . That's very helpful.

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

3 participants