RcssProperty {Rcssplot} | R Documentation |
Extract information about property and its value
Description
Extract information about property and its value
Usage
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
style1 <- Rcss(text="points { cex: 2; }")
# cex is defined, col is not defined
RcssProperty("points", "cex", Rcss=style1)
RcssProperty("points", "col", Rcss=style1)
[Package Rcssplot version 1.0.0 Index]