Re: [R] [External] Error in percentage stacked barplot

2023-05-02 Thread Richard M. Heiberger
## you may need to install HH install.packagess("HH") library(HH) hellisheidi <- read.table(text=" Component Sample1 Sample2 Sample3 CaO455248 SiO2 252218 Al2O3 15

[R] Error in percentage stacked barplot

2023-05-02 Thread Maria Lathouri via R-help
Dear all,  I am trying to plot the following table in stacked barplot in percentages and also horizontal. Component      Sample 1      Sample 2      Sample 3CaO    45     52    48SiO2   25    22    18Al2O3

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

[R] [R-pkgs] gsDesign2 1.0.8 is released

2023-05-02 Thread Nan Xiao
Dear all, A new version of gsDesign2 (1.0.8) is now on CRAN (https://cran.r-project.org/package=gsDesign2). gsDesign2 enables fixed or group sequential design under non-proportional hazards and supports highly flexible enrollment, time-to-event, and time-to-dropout assumptions. The key improve

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

[R] Reg: Help regarding ggplot2

2023-05-02 Thread Upananda Pani
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