add_relative_scales: Add x_rel and y_rel scales

Description Usage Arguments See Also

View source: R/scales.R

Description

This function adds scales named x_rel and 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.

Usage

1

Arguments

vis

A ggvis object.

See Also

add_legend for a usage example.


rpruim/ggvis2 documentation built on May 28, 2019, 2:34 a.m.