facet_share {ggpol} | R Documentation |
A shared axis for two panels
Description
'facet_share' uses [facet_wrap()] to build two panels with a shared axis.
Usage
facet_share(
facets,
scales = "fixed",
reverse_num = FALSE,
shrink = TRUE,
labeller = "label_value",
as.table = TRUE,
switch = NULL,
drop = TRUE,
dir = "h",
strip.position = "top"
)
Arguments
facets |
A set of variables or expressions quoted by For compatibility with the classic interface, can also be a
formula or character vector. Use either a one sided formula, |
scales |
Should scales be fixed ( |
reverse_num |
Used when passing on flipped data (times -1) for the second (right/bottom) panel. If 'TRUE', this will multiply the axis labels for that panel by -1. |
shrink |
If |
labeller |
A function that takes one data frame of labels and
returns a list or data frame of character vectors. Each input
column corresponds to one factor. Thus there will be more than
one with |
as.table |
If |
switch |
By default, the labels are displayed on the top and
right of the plot. If |
drop |
If |
dir |
Direction: either |
strip.position |
By default, the labels are displayed on the top of
the plot. Using |