[S] RE: using symbols with legend (fwd)

Nicole DePriest Demers (ntd@stat.ohio-state.edu)
Tue, 14 Jul 1998 13:39:07 -0400 (EDT)


Thanks - Nicole Demers

---------- Forwarded message ----------
Date: Tue, 14 Jul 1998 14:28:44 -0300
From: "Smith, Stephen" <SmithSJ@mar.dfo-mpo.gc.ca>
To: 'Nicole DePriest Demers' <ntd@stat.ohio-state.edu>
Subject: RE: using symbols with legend

use marks=c(15,16)

See help file for legend.

> ----------
> From: Nicole DePriest Demers[SMTP:ntd@stat.ohio-state.edu]
> Sent: 14-Jul-98 2:20 PM
> To: s-news@wubios.wustl.edu
> Subject: [S]: using symbols with legend
>
> Hello,
>
> I want to use plotting characters in my legend instead of line types.
> In particular, I want to include in my legend the solid square
> (pch=15)
> and the solid circle (pch=16). I originally thought the following
> would
> suffice but it doesn't:
>
> legend(60,14,c("BD Group","BN Group"),pch=c(15,16),bty="n").
>
> Further investigation indicates, as I interpret it, the pch= option
> expects a character vector, each element a single character. I want to
> use
> the symbol associated with the numbers 15 and 16.
>
> Any suggestions?
>
> Thanks,
>
> Nicole
> ______________________________________________________________________
> ________
> Nicole Demers
> Statistics Department
> The Ohio State University
> 1958 Neil Ave., #404
> Columbus, OH 43210, USA
> ntd@stat.ohio-state.edu
>
> ----------------------------------------------------------------------
> -
> This message was distributed by s-news@wubios.wustl.edu. To
> unsubscribe
> send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
> message: unsubscribe s-news
>

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news