Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Chris Evans via R-help
I'm only seeing six dates, by the look of them five at one day intervals and the last three days later.  According to my calendar those were weekdays in 2005.  I don't see much "volatility" there and that's not a term I'm familiar with, I suspect it's econometric.  I don't know what you're look

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Thomas . Rose
Dear Upananda, I see a misplaced bracket in your code, and there is no need in aes() to call the dataframe explicitly. Does this work? ggplot(data = data_vol3, aes(x = index, y = usa)) + geom_line() Best wishes, Thomas Von: R-help im Auftrag von Upananda Pan

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Upananda Pani
Hi Chrish, I am grateful to you for your reply. Your code is working fine. Moreover, you have guided me how to improve my knowledge, I appreciate it. I will be very careful next time. The data which i am working on is given below: dput(head(data_vol3)) structure(list(index = structure(c(12786, 12

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Upananda Pani
Hi Chris, Thank for your solutions and time. I am getting the following error while trying to execute the code you suggested. Error in select(., -rowN) : unused argument (-rowN) Regards, Upananda On Tue, May 2, 2023 at 3:08 PM Chris Evans via R-help wrote: > > It's not clear what you want but

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Upananda Pani
Hi Thomas, Thanks for your help. I need to plot all other countries as well. Thanks for your time With sincere regards, Upananda On Tue, May 2, 2023 at 3:01 PM Thomas.Rose wrote: > Dear Upananda, > > I see a misplaced bracket in your code, and there is no need in aes() to > call the dataframe

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Ebert,Timothy Aaron
Reorganize the data so that you have three columns Something more like this: Date Country Value 2005-01-03 Crepub1.21 You ggplot statement has a mistake. The geom_line() should be outside the ggplot() call. You might then have a ggplot statement like g

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Olivier Crouzet
Dear Upananda, to complement the current response to your question, your data source looks like a "wide table" while you would certainly need them to be organised as a "long table", or to speak differently as a "tidy table". You should read this source in order to get a grasp on these issues: htt

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Chris Evans via R-help
It's not clear what you want but ... On 02/05/2023 10:57, Upananda Pani wrote: > 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 > > in