Rcssplot (version 1.0.0)

Rcss: 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

Value

Rcss object

Details

See also related functions RcssGetDefaultStyle() and RcssOverload().

Examples

Run this code
# NOT RUN {
# 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)

# }

Run the code above in your browser using DataCamp Workspace