File: add_relative_scales.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 (20 lines) | stat: -rw-r--r-- 588 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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scales.R
\name{add_relative_scales}
\alias{add_relative_scales}
\title{Add x_rel and y_rel scales}
\usage{
add_relative_scales(vis)
}
\arguments{
\item{vis}{A ggvis object.}
}
\description{
This function adds scales named \code{x_rel} and \code{y_rel}, each of which
has a domain of 0 to 1, and the range is the plot's width or height.
These scales are useful for positioning visual elements relative to the
plotting area. For example, with legends.
}
\seealso{
\code{\link{add_legend}} for a usage example.
}