theme_ext | R Documentation |
Helper functions for modifying a ggplot theme. The "replace" and "update" options for the method parameter are not currently working; keeping method = NULL or method = "set" is recommended.
theme_text( font_family = NULL, color = "black", geom_text = TRUE, hjust = NULL, vjust = NULL, method = NULL ) theme_margin( margin = "standard", paper = NULL, orientation = NULL, dist = NULL, unit = "in", plot_width = NULL, header = 0, footer = 0, fill = NA, color = NA, size = 0, method = NULL ) theme_legend( position = NULL, justification = NULL, margin = 8, unit = "pt", inset = TRUE, bgcolor = "white", title = list(face = "bold", align = 0), method = NULL )
font_family |
Font family, Default: 'Helvetica' If |
color |
Color for text elements (passed to
|
geom_text |
If |
hjust, vjust |
Horizontal and vertical justification. |
method |
Method with name of the ggplot2 geom function to use for
modifying theme ("set", "update", or "replace"); defaults to |
margin |
Margin distance, a margin style supported by |
paper |
Paper, Default: 'letter'. |
orientation |
Orientation "portrait", "landscape", or "square", Default: 'portrait'. |
dist |
Margin distance (single value used to all sides), Default: |
unit |
Legend margin units; defaults to 'pt'. |
plot_width |
Plot or map width in units. If |
header, footer |
Header and footer height in units; defaults to 0. Please note: headers and footers are not currently supported for "px" units. |
fill |
Fill for |
size |
Size number (only used for "ISO" and "JIS" series). Standard, series, and size may all be required to return a single paper when using these parameters. |
position |
Legend position (“left”,“top”, “right”, “bottom”) or a two-element numeric vector to set position using Normalized Parent Coordinates ("npc"); defaults NULL |
justification |
If |
inset |
If |
bgcolor |
Fill color for legend background; defaults to 'white'. |
title |
Attributes to use for legend.title text (e.g. face and align). |
ggplot2::theme()
ggplot2::margin()
ggplot2::theme_get()
ggplot2::update_geom_defaults()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.