- file
the file where output will appear.
- height, width
Height and width in inches.
- bg
Default background color for the plot (defaults to "white").
- pointsize
default point size.
- standalone
Produce a stand alone svg file? If FALSE
, omits
xml header and default namespace.
- setdims
If TRUE
(the default), the svg node will have attributes width & height set
- canvas_id
svg id within HTML page.
- fonts
Named list of font names to be aliased with
fonts installed on your system. If unspecified, the R default
families "sans", "serif", "mono" and "symbol"
are aliased to the family returned by match_family()
.
If fonts are available, the default mapping will use these values:
R family | Font on Windows | Font on Unix | Font on Mac OS |
sans | Arial | DejaVu Sans | Helvetica |
serif | Times New Roman | DejaVu serif | Times |
mono | Courier | DejaVu mono | Courier |
symbol | Symbol | DejaVu Sans | Symbol |
As an example, using fonts = list(sans = "Roboto")
would make the
default font "Roboto" as many ggplot theme are using theme_minimal(base_family="")
or
theme_minimal(base_family="sans")
.
You can also use theme_minimal(base_family="Roboto").