Re: [R] Canging the type of point points sizein plots..

From: Dimitris Rizopoulos <Dimitris.Rizopoulos_at_med.kuleuven.be>
Date: Sat 27 Jan 2007 - 17:22:42 GMT

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@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@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



R-help@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. Received on Sun Jan 28 04:26:13 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 27 Jan 2007 - 20:30:37 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.