Re: [R] Multiple plots with one legend

From: mavkoup <>
Date: Sat, 26 Mar 2011 17:27:10 -0700 (PDT)

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.

line(with color1) NAME 1
line(with color2) NAME 2

I have a vector of colors I'm using and a vector of names.


View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 27 Mar 2011 - 00:41:42 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:20:25 GMT.

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

list of date sections of archive