[Rd] documentation for legend(): possible missing info for pch.
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sun Dec 9 13:51:58 CET 2012
On 07/12/2012 08:25, Laurent Gautier wrote:
> In the documentation for graphics::legend(), the entry for "pch" is:
> > pch: the plotting symbols appearing in the legend, either as
> vector of 1-character strings, or one (multi character)
> string. _Must_ be specified for symbol drawing.
> If I did not misread them, examples in the same documentation page
> suggest that it is also possible to pass integers.
The authors of legend() have not responded AFAICS.
It is possible to pass some integers, but 'pch = c(-1, 3, 4)' is not
explained. Strangely although ?points documents the interpretation of
both positive and non-negative integers, legend() excludes negative ones.
I'll correct the docs, at least.
Thank you for the report.
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 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-devel