View source: R/construct_transform_coordinates.R
scale_data | R Documentation |
Helper function for adding coordinates onto animation of transformation.
scale_data(data, limit = 5)
data |
Dataframe containing at least one numeric column. |
limit |
Maximum magnitude value in range of coordinates after scaling, defaults to 5. |
A dataframe that has been scaled so that the largest value in a numeric column is 5.
library(tibble) scale_data(tibble(x = 1:10, y = -1:-10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.