[R] Reg: Help regarding ggplot2

Upananda Pani up@n@nd@@p@n| @end|ng |rom gm@||@com
Tue May 2 10:57:24 CEST 2023


Dear All,

I have a dataset which contains date and 12 other countries data. I
have extracted the data as xts object.

I am not able to recall all the series in the Y axis. My data set
looks like this

index      crepub finland france germany italy netherlands norway poland
  <date>      <dbl>   <dbl>  <dbl>   <dbl> <dbl>       <dbl>  <dbl>  <dbl>
1 2005-01-03   1.21   0.615   1.90    3.01 0.346       0.509  1.05    1.13
2 2005-01-04   1.18   0.615   1.85    2.89 0.346       0.509  0.889   1.12
3 2005-01-05   1.15   0.615   1.81    2.78 0.346       0.509  0.785   1.09
4 2005-01-06   1.11   0.615   1.76    2.67 0.346       0.509  0.711   1.06
5 2005-01-07   1.08   0.615   1.72    2.57 0.346       0.509  0.661   1.02
6 2005-01-10   1.04   0.615   1.69    2.48 0.346       0.509  0.630   1.01

My code for the same is as follows

ggplot(data=data_vol3, aes(x=index, y=data_vol3$usa)+
  geom_line())

Any help in this regard will be highly appreciated

With regards,
Upananda Pani



More information about the R-help mailing list