powered by
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.
x_rel
y_rel
add_relative_scales(vis)
A ggvis object.
add_legend for a usage example.
add_legend