[R] Scatterplot question

Cuckovic Paik cuckovic.paik at gmail.com
Sat Aug 28 04:11:45 CEST 2010


Is this what you want? 

x=rnorm(10)
y1=0.5*rnorm(10)+0.5*rexp(10)
y2=0.5*rnorm(10)+0.5*runif(10)
xlimit=range(x)
ylimit=range(c(y1,y2))
plot(x,y1,pch="1",col=2,xlim=xlimit, ylim=ylimit, ylab="Y", xlab="X",
cex=0.7)
points(x,y2,pch="2", col=4,cex=0.7)

-- 
View this message in context: http://r.789695.n4.nabble.com/Scatterplot-question-tp2341456p2341780.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list