Rcss | R Documentation |
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.
Rcss(file = NULL, text = NULL)
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 |
See also related functions RcssGetDefaultStyle() and RcssOverload().
Rcss object
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.