New theme option to put panel/grid on top of data #993
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A new theme option,
panel.ontop
, places the background objects (panel, gridlines), on top of thedata in the plot if set to
TRUE
. This allows one to place gridlines over the data. One would typically also include a blank or transparent panel in the theme.This is implemented by changes in facet_panels.* functions, changing the ordering of layers depending on the value of
theme$panel.ontop
.add_theme
was also changed to allow for logical theme elements.This is a simple implementation. A more advanced one would allow gridlines to be placed on top of data while keeping the panel below data.
Updated
theme()
documentation included via roxygen 4.0.1.Tests passed with the following exception. which I believe is unrelated:
Fixes #551