Title for a matplot
1
0
Entering edit mode
@dennisburianfaagov-2126
Last seen 7.6 years ago
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 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
• 1.1k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 7 hours ago
United States
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.
ADD COMMENT

Login before adding your answer.

Traffic: 709 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6