add_relative_scales | R Documentation |
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.
add_relative_scales(vis)
vis |
A ggvis object. |
add_legend
for a usage example.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.