View source: R/guide-axis-theta.R
guide_axis_theta | R Documentation |
This is a specialised guide used in coord_radial()
to represent the theta
position scale.
guide_axis_theta(
title = waiver(),
theme = NULL,
angle = waiver(),
minor.ticks = FALSE,
cap = "none",
order = 0,
position = waiver()
)
title |
A character string or expression indicating a title of guide.
If |
theme |
A |
angle |
Compared to setting the angle in
|
minor.ticks |
Whether to draw the minor ticks ( |
cap |
A |
order |
A positive |
position |
Where this guide should be drawn: one of top, bottom, left, or right. |
The axis labels in this guide are insensitive to hjust
and vjust
settings. The distance from the tick marks to the labels is determined by
the largest margin
size set in the theme.
# A plot using coord_radial
p <- ggplot(mtcars, aes(disp, mpg)) +
geom_point() +
coord_radial()
# The `angle` argument can be used to set relative angles
p + guides(theta = guide_axis_theta(angle = 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.