Re: [R] Multiple plots with one legend

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Sat, 26 Mar 2011 20:43:57 -0400

On Mar 26, 2011, at 8:27 PM, mavkoup wrote:

> Ok I think I can figure that out. Which leads me to a further
> question. My 3
> plots contain 10 time series, each with a different name and color.
> Can I
> create the legend such that it has a line of the correct color
> follow by the
> name of the series? I.e.

"plots" and therefore "legends" in R can take many forms. Have your read the Posting Guide's recommendations on how to submit a reproducible example yet? That would be particularly important if you have three different plots on the same page.

>
> line(with color1) NAME 1
> line(with color2) NAME 2
> ...
>
> I have a vector of colors I'm using and a vector of names.

-- 

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 27 Mar 2011 - 00:51:38 GMT

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 27 Mar 2011 - 01:40:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive