[R] smoothScatter plot

JiangZhengyu zhyjiang2006 at hotmail.com
Tue Oct 2 05:38:31 CEST 2012





Hi, I want to make a plot similar to sm1 (attached). The code I tried is: dcols <- densCols(x,y)
smoothScatter(x,y, col = dcols, pch=20,xlab="A",ylab="B")
abline(h=0, col="red")
 But it turned out to be s1 (attached) with big dots. I was wondering if anything wrong with my code. Thanks,Zhengyu 		 	   		  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sm1.png
Type: image/png
Size: 23046 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20121002/13c293ba/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: s1.png
Type: image/png
Size: 17877 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20121002/13c293ba/attachment-0001.png>


More information about the R-help mailing list