File: propname_to_scale.Rd

package info (click to toggle)
r-cran-ggvis 0.4.7%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,716 kB
  • sloc: javascript: 7,373; sh: 25; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 723 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scale.R
\name{propname_to_scale}
\alias{propname_to_scale}
\title{Convert the name of a property to the name of its default scale.}
\usage{
propname_to_scale(prop)
}
\arguments{
\item{prop}{character vector of property names. Any unrecognised names
are left unchanged.}
}
\value{
character vector of default scale names.
}
\description{
This is mainly used to ensure that similar properties share the same
scale by default - e.g. \code{x} and \code{x2} should use the same
scale.
}
\examples{
propname_to_scale(c("x", "x2"))
propname_to_scale(c("foo", "bar"))
propname_to_scale(c("opacity", "fillOpacity", "strokeOpacity"))
}
\keyword{internal}