[BioC] Title for a matplot
James W. MacDonald
jmacdon at med.umich.edu
Wed Apr 25 20:50:12 CEST 2007
Hi Dennis,
Dennis.Burian at faa.gov wrote:
>
>
>
> Dear all,
>
> I ran the following command to add a title to a matplot the logic being
> that the help for matplot refers the reader to the help for plot. As you
> can see, matplot doesn't recognize the title argument. Any other ideas for
> a way to get a title added to the matplot?
>
>
>>matplot(pm(BucBlAfBatch,"31962_at"),type="l",xlab="Probe No.",ylab="PM
>
> Probe Intensity",(title(main="31962")))
> Error in title(main = "31962") : plot.new has not been called yet
You can either use the 'main' argument from within the call to matplot
(see e.g., the first example in ?matplot), or use a separate call of
title(main="31962")
after the call to matplot().
But you can't do what you are attempting because the parser works from
the inside out. In other words, the parser will first evaluate
title(main="31962") and then evaluate the overall call to matplot()
(which is why you can get away with function calls within other function
calls). However, in your case, plot.new() hasn't been called yet when
title() is evaluated so you get an error.
Best,
Jim
>
> Dennis Burian, Ph.D.
> Functional Genomics Group
> Civil Aerospace Medical Institute, AAM-610
> 6500 S. MacArthur Blvd.
> Oklahoma City OK 73169
> 405-954-6087
> dennis.burian at faa.gov
>
> _______________________________________________
> 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