[BioC] how to add SD onto a plot
James W. MacDonald
jmacdon at med.umich.edu
Mon Nov 20 20:52:36 CET 2006
Hi Jianping,
Jianping Jin wrote:
> Dear list,
>
> Does any one know how to add SD information of a data set onto a plot which
> displays mean values for each group? I did something like:
>
>
>>x = c(0,1,2,3)
>>y = apply(data,2,mean)
>>plot(x,y)
z <- apply(dat, 2, sd)/2
for(i in seq(along = x)) arrows(x[i], y[i]-z[i], x[i], y[i]+z[i],
angle=90, length=0.1, code=3)
Best,
Jim
>
>
> Thanks for you help!
>
> Jianping
>
> ##################################
> Jianping Jin Ph.D.
> Bioinformatics scientist
> Center for Bioinformatics
> Room 3133 Bioinformatics building
> CB# 7104
> University of Chapel Hill
> Chapel Hill, NC 27599
> Phone: (919)843-6105
> FAX: (919)843-3103
> E-Mail: jjin at email.unc.edu
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
--
James W. MacDonald, M.S.
Biostatistician
Affymetrix and cDNA Microarray Core
University of Michigan Cancer Center
1500 E. Medical Center Drive
7410 CCGC
Ann Arbor MI 48109
734-647-5623
**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues.
More information about the Bioconductor
mailing list