View source: R/wrapper_rangeframe.R
theme_rangeframe | R Documentation |
Modifies select aspects of theme_cr() to make it work better with the
geom_rangeframe
from the
ggthemes
package.
theme_rangeframe(
plot_scale = 1,
font_scale = 1,
font = "Roboto Regular",
symbol = TRUE,
cairo = FALSE
)
plot_scale |
Scaling factor for the plot components as a whole. A value of 1 corresponds to a font size of 12 pt and a figure size of 6" by 4" |
font_scale |
Scaling factor for the font as compared to the plot. A value of 1 will scale the font to the plot size. Larger numbers make the font large compared to the plot size; smaller numbers make the font small compared to the plot size. |
font |
Font family to be used in the theme, given as a character vector.
The font must be included in the theme fonts; use
|
symbol |
Should the theme overwrite the system default Symbol font with
the theme default font? If |
cairo |
Is a cairographics device being used to save the figure? ("pdf"
and "eps" filetypes) Cairo does not use the font registration from the
|
library(ggplot2)
library(ggthemes)
df <- data.frame(x = 1:5, y = 1:5, z = c("a", "b", "c", "b", "c"))
p <- ggplot(df, aes(x, y, color = z)) + geom_point() +
geom_rangeframe(colour = "gray20")
## Not run:
p + theme_rangeframe()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.