View source: R/primitive-spacer.R
primitive_spacer | R Documentation |
This function constructs a spacer guide primitive.
primitive_spacer(
space = NULL,
title = waiver(),
theme = NULL,
position = waiver()
)
space |
A [ |
title |
A |
theme |
A |
position |
A |
A <PrimitiveSpacer>
primitive guide that can be used inside
other guides.
#' Below are the theme options that determine the styling of this guide. This guide does not have option dependent on its role as axis or legend.
legendry.guide.spacing
A <unit>
setting the amount of
spacing when the space
argument is NULL
.
Other primitives:
primitive_box()
,
primitive_bracket()
,
primitive_fence()
,
primitive_labels()
,
primitive_line()
,
primitive_segments()
,
primitive_ticks()
,
primitive_title()
ggplot(mpg, aes(displ, hwy)) +
geom_point() +
guides(
x = guide_axis_stack("axis", primitive_spacer(unit(1, "cm")), "axis")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.