#ggplot
library(ggplot2)
dat3mlt<-melt(dat3,id.vars="index")
#1
ggplot(dat3mlt, aes(x=index, y=value,
colour=variable))+stat_smooth(method="lm")+geom_point()
#2
ggplot(dat3mlt, aes(x=index, y=value,
colour=variable))+stat_smooth(method="lm",formula=y~ns(x,3))+g
gmail.com
> Sent: Fri, 20 Jul 2012 12:57:14 +0200
> To: r-help@r-project.org
> Subject: [R] qplot/ggplot
>
> Hello,
> I have a file like this (just a snapshot) where I have numerical
> values for various genes, I want a line plot with shading (may be
> using smooth ?) using
Hello,
I have a file like this (just a snapshot) where I have numerical
values for various genes, I want a line plot with shading (may be
using smooth ?) using qplot or ggplot :
Gene1 10 14 12 23 11 11 33 1 ..(multiple columns)
Gene2 4 2 1 1 3 4 1 2 .
Gene3 2 5 7 5 6 89 7 3 ..
Gene4 1
3 matches
Mail list logo