Re: [Rd] documentation for legend(): possible missing info for pch.

From: Prof Brian Ripley <>
Date: Sun, 09 Dec 2012 12:51:58 +0000

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,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
Received on Sun 09 Dec 2012 - 12:57:32 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 09 Dec 2012 - 18:52:32 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive