[R] Plot many x and y
Joshua Wiley
jwiley.psych at gmail.com
Mon Jun 6 21:54:42 CEST 2011
Hi Alex,
You have not given enough details for us to answer your question. Is
this something like what you mean?
par(mfcol = c(2, 2))
plot(1:10, 1:10, pch = 16)
legend(x = 2, y = 8, legend = "Test 1", pch = 16)
plot(1:10, 1:10, pch = 15)
legend(x = 2, y = 8, legend = "Test 2", pch = 15)
plot(1:10, 1:10, pch = 14)
legend(x = 2, y = 8, legend = "Test 3", pch = 14)
plot(1:10, 1:10, pch = 13)
legend(x = 2, y = 8, legend = "Test 4", pch = 13)
The posting guide ( http://www.R-project.org/posting-guide.html )
provides some helpful tips on how to write a question that will get a
good answer.
Cheers,
Josh
On Mon, Jun 6, 2011 at 12:46 PM, Alaios <alaios at yahoo.com> wrote:
> Dear all
>
> could you please plot many x's and y's with one legend per plot?
>
> I would like to thank you in advance for your help
>
> Best Regards
> Alex.
>
> ______________________________________________
> 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.
>
--
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/
More information about the R-help
mailing list