[R] Legend in plot: symbol for mean and standard deviation
m.kienzle at marlab.ac.uk
Tue Feb 25 16:51:46 CET 2003
I attached to this mail an eps file containing an example that illustrate the problem: the
plot display dot+vertical lines while with the legend I am able only to
display dot+horizontal line.
Any help is appreciate,
On Mon, 2003-02-24 at 17:51, Uwe Ligges wrote:
> Marco Kienzle wrote:
> > Dear list,
> > I am facing the following problem with the legend of a plot that display
> > the mean and variance of a measurement y as a function of x, the mean
> > being represented by a dot and the variance by a vertical line.
> At least for me the latter does not appear to be "that common" ...
> > My problem is that I am unable to display the symbol (dot + vertical
> > line) in the legend.
> > any help is welcome,
> > thanks
> > marco
> Does the following do what you are looking for?
> legend(..., c("y.", "y|"))
> legend(..., expression(y[.], y["|"]))
> Uwe Ligges
Fisheries Research Services
PO Box 101 Victoria Road
direct: +44 (0) 1224 295421
tel: +44 (0) 1224 876544
fax: +44 (0) 1224 295511
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4524 bytes
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20030225/a9e83d0d/graph.eps
More information about the R-help