Re: [R] Unable to make plots using ggplot2

2020-02-16 Thread pooja sinha
Thanks for your suggestion and code. Puja On Sun, Feb 16, 2020 at 5:23 PM Rui Barradas wrote: > Hello, > > Your error is that you are not plotting the values in your file > See what is in df, it's one column only with 3 character strings, > c("Young_Control", "Young_Treated", "CHG_methylation"

Re: [R] Unable to make plots using ggplot2

2020-02-16 Thread Rui Barradas
Hello, Your error is that you are not plotting the values in your file See what is in df, it's one column only with 3 character strings, c("Young_Control", "Young_Treated", "CHG_methylation"). Those *are not* the names of columns, they are just strings. The right way of doing it is to reshape

Re: [R] Unable to make plots using ggplot2

2020-02-16 Thread Bert Gunter
What do you think these two statements do? df <- data2 df <- data.frame(var=c("Young_Control", "Young_Treated", "CHG_methylation")) I suggest you stop what you're doing and spend time with an R tutorial or two before proceeding. Bert Gunter "The trouble with having an open mind is that people k

[R] Unable to make plots using ggplot2

2020-02-16 Thread pooja sinha
Hi All, I have data in excel with the following details: CHG_methylation Young_Control Young_Treated 0-10% 95.23 94.53 10-20% 3.71 4.16 20-30% 0.68 0.8 30-40% 0.18 0.22 40-50% 0.07 0.09 50-60% 0.04 0.06 60-70% 0.02 0.04 70-80% 0.02 0.03 80-90% 0.02 0.03 90-100% 0.04 0.05 I am trying to plot the gr