-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Make plot title position configurable. #3494
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
Make plot title position configurable. #3494
Conversation
@thomasp85 Any opinions on this approach? I'm happy to finish this up if there are no major objections. |
This is more or less how I was planning to implement it. It will complicate patchwork but that is how it is... enough people have been hacking at ggplot2 to get this. How does this work with the default tag position? |
Tag appears to the top left of the plot, which seems reasonable to me. People may have to fiddle a bit with margins around the tag, but it's essentially fine as is. library(ggplot2)
ggplot(mpg, aes(x = class)) +
geom_bar() +
coord_flip() +
labs(
title = "SUVs are the most popular",
subtitle = "Number of cars of different classes in the mpg dataset",
tag = "A") +
theme(axis.title.y = element_blank(), plot.title.position = "plot") Created on 2019-08-24 by the reprex package (v0.3.0) |
Yeah, I think this looks fine |
c2cbecf
to
36736bf
Compare
I think this is ready for review now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but @hadley may have opinions
LGTM. This is definitely something we should highlight in the release blog post. |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Closes #3252.
Created on 2019-08-19 by the reprex package (v0.3.0)