propname_to_scale: Convert the name of a property to the name of its default...

View source: R/scale.R

propname_to_scaleR Documentation

Convert the name of a property to the name of its default scale.

Description

This is mainly used to ensure that similar properties share the same scale by default - e.g. x and x2 should use the same scale.

Usage

propname_to_scale(prop)

Arguments

prop

character vector of property names. Any unrecognised names are left unchanged.

Value

character vector of default scale names.

Examples

propname_to_scale(c("x", "x2"))
propname_to_scale(c("foo", "bar"))
propname_to_scale(c("opacity", "fillOpacity", "strokeOpacity"))

rstudio/ggvis documentation built on Feb. 5, 2024, 9:13 p.m.