Helper function that rescales one variable based on another (previously scaled), handling presence or absence of centering or scaling appropriately
1 | rescale(x, x.scaled)
|
x |
vector that needs to be scaled. |
x.caled |
vector that was already scaled. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.