From ripley at stats.ox.ac.uk  Sun Dec  9 13:51:58 2012
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sun, 09 Dec 2012 12:51:58 +0000
Subject: [Rd] documentation for legend(): possible missing info for pch.
In-Reply-To: <50C1A7E7.1010709@gmail.com>
References: <50C1A7E7.1010709@gmail.com>
Message-ID: <50C4896E.1070102@stats.ox.ac.uk>

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



[Rd] documentation for legend(): possible missing info for pch.
Prof Brian Ripley