Skip to content

Canging the type of point points sizein plots..

2 messages · vinod gullu, Dimitris Rizopoulos

#
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
#
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>:
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm