Skip to content
Prev 384808 / 398502 Next

Plot base 100

Hi Pedro,
Assuming that you get a vector of daily percentage changes:

dpc<-c(+3.1, -2.8, +1.7, +2.1)

get the cumulative change and add 100:

cumsum(dpc)+100
[1] 103.1 100.3 102.0 104.1

You can then plot that. As Rui noted, your mail client is inserting
invisible characters that prevent cutting and pasting into R.

Jim
On Mon, Jul 20, 2020 at 4:46 AM Pedro p?ramo <percentil101 at gmail.com> wrote: