svg: Create a styled svg figure

Description Usage Arguments Examples

View source: R/RcssWrappers.R

Description

This is a wrapper for R's svg function. See R's documentation for grDevices::svg for further details

Usage

1
svg(filename, Rcss = "default", Rcssclass = NULL, ...)

Arguments

filename

character string with file name

Rcss

style sheet object. Leave "default" to use a style defined via RcssSetDefaultStyle()

Rcssclass

character, style class

...

Further parameters, see documentation of grDevices::svg

Examples

1
2
3
4
5
# send content of graphics to a pdf file
# to run this, un-comment the pdf() and dev.off() lines
# svg(file="example-file.svg")
barplot(1:5)
# dev.off()

tkonopka/Rcssplot documentation built on Jan. 21, 2021, 11:36 p.m.