Rcss {Rcssplot} | R Documentation |
Create an Rcss style object
Description
Creates a style sheet object using definition specified in an Rcss file. When a file is not specified, creates a base object object without any styling.
Usage
Rcss(file = NULL, text = NULL)
Arguments
file |
filename containing Rcss definitions. If set to NULL, function returns a basic Rcss object. If multiple files, function reads each one and produces a joint style. |
text |
character, a string with Rcss |
Details
See also related functions RcssGetDefaultStyle() and RcssOverload().
Value
Rcss object
Examples
# define a custom style
custom.style <- Rcss(text="plot { pch:19; col: 2 }")
# display the custom style
printRcss(custom.style, "plot")
# use the custom style in a chart
plot(1:4, 1:4, Rcss=custom.style)
[Package Rcssplot version 1.0.0 Index]