Description Usage Arguments Details Value Author(s) Examples
Sets just the font size and optionally font family without changing other graphic attributes. Notably, the ggplot theme_grey and theme-bw can be used to change base_size but annoyingly reset my custom legend locations. So apply baseFont last and use it to change just the font sizes without otherwise altering you plot theme.
1 | baseFont(base_size = 12, base_family = "")
|
base_size |
Size for the basefont in points (Default = 12) |
base_family |
Set the font family |
Optionally, set the font family as well. But from what I can tell, on Windows, you can have any font you want as long as it's Helvetica. see: https://github.com/wch/extrafont regarding attempting to use other font families.
A ggplot theme that can be added to a plot object
John Thompson, john.thompson@bms.com
1 | Myggplot <- myggplot + baseFont(18)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.