RcssGetPropertyValueOrDefault: Extract a value for an Rcss property

Description Usage Arguments Details Examples

View source: R/RcssGet.R

Description

If the requested property is defined within an Rcss object, this function will return the associated value. If the property is not defined, the function returns a default value that can be passed into the function and is set NULL otherwise. See also RcssGetPropertyValue().

Usage

1
2
3
4
5
6
7
RcssGetPropertyValueOrDefault(
  Rcss,
  selector,
  property,
  default = NULL,
  Rcssclass = NULL
)

Arguments

Rcss

style sheet object

selector

name of selector of interest (e.g. "plot", "axis", "text", etc.)

property

name of property of interest (e.g. "col", "pch", etc.)

default

value to return if the desired property is not defined in Rcss

Rcssclass

subclass of style sheet

Details

Equivalent to RcssValue(); use RcssValue() instead

Examples

1
# use RcssValue instead

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