ggvis (version 0.4.9)

propname_to_scale: 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)

Value

character vector of default scale names.

Arguments

prop

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

Examples

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

Run the code above in your browser using DataCamp Workspace