RcssProperty: Extract information about property and its value

Description Usage Arguments Value Examples

View source: R/RcssGet.R

Description

Extract information about property and its value

Usage

1
RcssProperty(selector, property, Rcssclass = NULL, Rcss = "default")

Arguments

selector

character, name of selector, e.g. 'points'

property

character, name of property, e.g. 'col'

Rcssclass

character or vector, subclass in Rcss

Rcss

Rcss object

Value

list with two ites. Component "defined" is a boolean that indicates whether the property is defined in the style. Component "value" gives the actual value associated to the property.

Examples

1
2
3
4
style1 <- Rcss(text="points { cex: 2; }")
# cex is defined, col is not defined
RcssProperty("points", "cex", Rcss=style1)
RcssProperty("points", "col", Rcss=style1)

Rcssplot documentation built on Jan. 8, 2020, 5:11 p.m.