[R] Canging the type of point points sizein plots..
Dimitris Rizopoulos
Dimitris.Rizopoulos at med.kuleuven.be
Sat Jan 27 18:22:42 CET 2007
try this
x1 <- rnorm(10); y1 <- rnorm(10)
x2 <- rnorm(10); y2 <- rnorm(10)
x3 <- rnorm(10); y3 <- rnorm(10)
#################
plot(range(x1, x2, x3), range(y1, y2, y3), type = "n")
points(x1, y1, pch = 1, cex = 1, col = 1)
points(x2, y2, pch = 2, cex = 2, col = 2)
points(x3, y3, pch = 3, cex = 3, col = 3)
I hope it helps.
Best,
Dimitris
----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven
Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://med.kuleuven.be/biostat/
http://www.student.kuleuven.be/~m0390867/dimitris.htm
Quoting vinod gullu <vinodkgul at yahoo.com>:
> I want to plot variation of more than one variable in
> single plot with different point types and points
> sizes . Can someone help me to do that,
>
> Thanks in advance.
> vinod
>
>
>
> ____________________________________________________________________________________
> Now that's room service! Choose from over 150,000 hotels
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
>
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
More information about the R-help
mailing list