[R] Legend in plot: symbol for mean and standard deviation
ligges at statistik.uni-dortmund.de
Mon Feb 24 18:52:03 CET 2003
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,
Does the following do what you are looking for?
legend(..., c("y.", "y|"))
legend(..., expression(y[.], y["|"]))
More information about the R-help