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
Adding theme(panel.border=element_rect(...)) resets the plot #659
Comments
Previously the default
|
Thanks. I guess I was confused about the difference between panel.border and panel.background. |
No worries. It's true that the difference isn't well documented. The purpose for panel border is to draw a bounding rectangle that is on top of things like tick marks. I've improved the help for it in the dev version: |
I'm glad I made the mistake; this makes a lot more sense now. |
Thanks for the help, wch! I had the exact same problem. It would be good to add this note to http://docs.ggplot2.org/0.9.2.1/theme.html as, currently, panel.border makes the entire graph disappear (in the example, ~3/4 of the way down the page).. |
The following code produces a weird error. It renders the plot twice, the second time producing a plot with almost nothing on it. This doesn't appear when adding themes with other elements.
This produces the same error
This doesn't produce an error
The text was updated successfully, but these errors were encountered: