[R] Legend in plot: symbol for mean and standard deviation
Marco Kienzle
m.kienzle at marlab.ac.uk
Tue Feb 25 16:51:46 CET 2003
Dear list,
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,
cheers,
marco
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|"))
> or
> legend(..., expression(y[.], y["|"]))
>
>
> Uwe Ligges
--
____________________________________________________________________________
Marco Kienzle
Fisheries Research Services
Marine Laboratory
PO Box 101 Victoria Road
Aberdeen AB119DB
United Kingdom
direct: +44 (0) 1224 295421
tel: +44 (0) 1224 876544
fax: +44 (0) 1224 295511
http://www.marlab.ac.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graph.eps
Type: application/postscript
Size: 4524 bytes
Desc:
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20030225/a9e83d0d/graph.eps
More information about the R-help
mailing list