Transform a time series of wealths into a time series of prices relative of the same length. Make sure that the first element is correct.
Time series of wealth.
Essentially perform w / lag(w) but add an initial value to keep the same length.
Time series of relative prices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.