Hi, many thanks for all suggestions as to shading of areas. Now to another small detail: how do I add items to the x-axis? Given a plot of "dnorm", I'd like to add some text to the x-axis, preferably with a corresponding tick mark. Imagine the typical \lambda demarcating a tail area. So far, I've only been able to add text in the plot region, not in the one of the axes. Suggestions? Robert **************** Robert Lundqvist Dept of Quality Technology & Statistics Lulea University of Technology Sweden -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Robert Lundqvist wrote:> > Hi, > > many thanks for all suggestions as to shading of areas. Now to another small > detail: how do I add items to the x-axis? Given a plot of "dnorm", I'd like > to add some text to the x-axis, preferably with a corresponding tick mark. > Imagine the typical \lambda demarcating a tail area. So far, I've only been > able to add text in the plot region, not in the one of the axes. > Suggestions?Two solutions: mtext() for placing text into the margins or text() after par(xpd=TRUE) Uwe -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On 31-Jan-2002 Robert Lundqvist wrote:> Hi, > > many thanks for all suggestions as to shading of areas. Now to another small > detail: how do I add items to the x-axis? Given a plot of "dnorm", I'd like > to add some text to the x-axis, preferably with a corresponding tick mark. > Imagine the typical \lambda demarcating a tail area. So far, I've only been > able to add text in the plot region, not in the one of the axes. > Suggestions?Look at plot(...., axes=FALSE) and help(axis). Hope this helps, detlef> > Robert > **************** > Robert Lundqvist > Dept of Quality Technology & Statistics > Lulea University of Technology > Sweden > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > - > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. > _Detlef Steuer --- http://fawn.unibw-hamburg.de/steuer.html ***** Encrypted mail preferred ***** -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._