ugd {unigd} | R Documentation |
This function initializes a unigd graphics device.
ugd( width = getOption("unigd.width", 720), height = getOption("unigd.height", 576), bg = getOption("unigd.bg", "white"), pointsize = getOption("unigd.pointsize", 12), system_fonts = getOption("unigd.system_fonts", list()), user_fonts = getOption("unigd.user_fonts", list()), reset_par = getOption("unigd.reset_par", FALSE) )
width |
Graphics device width (pixels). |
height |
Graphics device height (pixels). |
bg |
Background color. |
pointsize |
Graphics device point size. |
system_fonts |
Named list of font names to be aliased with
fonts installed on your system. If unspecified, the R default
families |
user_fonts |
Named list of fonts to be aliased with font files
provided by the user rather than fonts properly installed on the
system. The aliases can be fonts from the fontquiver package,
strings containing a path to a font file, or a list containing
|
reset_par |
If set to |
All font settings and descriptions are adopted from the excellent 'svglite' package.
No return value, called to initialize graphics device.
ugd() # Initialize graphics device # Plot something x <- seq(0, 3 * pi, by = 0.1) plot(x, sin(x), type = "l") # Render plot as SVG ugd_render(width = 600, height = 400, as = "svg") dev.off() # alternatively: ugd_close()