Question: Title for a matplot
0
gravatar for Dennis.Burian@faa.gov
12.6 years ago by
Dennis.Burian@faa.gov90 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 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
• 562 views
ADD COMMENTlink modified 12.6 years ago by James W. MacDonald52k • written 12.6 years ago by Dennis.Burian@faa.gov90
Answer: Title for a matplot
0
gravatar for James W. MacDonald
12.6 years ago by
United States
James W. MacDonald52k wrote:
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 COMMENTlink written 12.6 years ago by James W. MacDonald52k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 150 users visited in the last hour