[R] Add item to scale?

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jan 31 10:12:32 CET 2002


On Thu, 31 Jan 2002, Uwe Ligges wrote:

>
>
> 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)

or perhaps easier, use axis() with at= and label=.  This will draw another
axis line, but normally that is not a problem (especially for one value of
`at').

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list