Re: [R] legend

About this list Date view Thread view Subject view Author view Attachment view

From: Aleksey Y Naumov (naumov@buffalo.edu)
Date: Thu 13 Feb 2003 - 10:51:20 EST


Message-id: <Pine.GSO.4.05.10302121850090.6459-100000@hercules.acsu.buffalo.edu>

Try:

legend(locator(1), month.abb[1:5], fill=1:5)

'col' takes care of the color of points and lines.

Aleksey

On Wed, 12 Feb 2003, Wilkinson, Mark wrote:

>
> I think I'm missing something tonight in the usage of 'legend':
>
> plot(0, type="n")
> legend(locator(1), month.abb[1:5], pch=15, col=1:5)
>
> gives me something similar to what I want. But
>
> legend(locator(1), month.abb[1:5], fill=T, col=1:5)
>
> gives me 5 black boxes.
>
> What am I doing wrong?
>
> Thank you,
>
>
> > version
> _
> platform i686-pc-linux-gnu
> arch i686
> os linux-gnu
> system i686, linux-gnu
> status
> major 1
> minor 6.1
> year 2002
> month 11
> day 01
> language R
>
>
> Mark Wilkinson
> Informatics Analyst
> St. Jude Children's Research Hospital
> Department of Pharmaceutical Sciences
>
> The opinions expressed here are my own and do not necessarily represent
> those of St. Jude Children's Research Hospital.
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
>

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:21 EST