powered by
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.
x
x2
propname_to_scale(prop)
character vector of default scale names.
character vector of property names. Any unrecognised names are left unchanged.
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 DataLab