Description Usage Arguments Examples
Override theme parameters for general plot attributes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | theme_title(
fig,
pars = NULL,
background_fill_color = "white",
background_fill_alpha = 1,
border_fill_color = "white",
border_fill_alpha = 1,
align = "left",
text_alpha = 1,
text_baseline = "bottom",
text_color = "#444444",
text_font = "Helvetica",
text_font_size = "12pt",
text_font_style = "normal"
)
|
fig |
figure to modify |
pars |
optionally specify a named list of all parameters - useful when dealing with theme lists |
background_fill_color |
(color) background color of plot |
background_fill_alpha |
(numeric) background color alpha of plot |
border_fill_color |
(color) fill color of border area of plot |
border_fill_alpha |
(numeric) fill color alpha of border area of plot |
align |
('left', 'right', 'center') The text align for the plot title. |
text_alpha |
The text alpha for the plot title. |
text_baseline |
('top', 'middle', 'bottom', 'alphabetic', 'hanging') The text baseline for the plot title. |
text_color |
(color) The text color for the plot title. |
text_font |
(string) The text font for the plot title. |
text_font_size |
(string - e.g. '12pt') The text font size for the plot title. |
text_font_style |
('normal', 'italic', 'bold') The text font style for the plot title. |
1 2 3 | figure(title = "asdf") %>%
ly_points(1:10) %>%
theme_title(text_color = "red")
|
Warning messages:
1: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
Consider 'structure(list(), *)' instead.
2: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
Consider 'structure(list(), *)' instead.
3: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
Consider 'structure(list(), *)' instead.
4: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
Consider 'structure(list(), *)' instead.
5: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
Consider 'structure(list(), *)' instead.
6: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
Consider 'structure(list(), *)' instead.
7: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
Consider 'structure(list(), *)' instead.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.