Rcss: Create an Rcss style object

Description Usage Arguments Details Value Examples

View source: R/Rcss.R

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

1

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

1
2
3
4
5
6
7
8
# 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)

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