[R] smoothScatter plot

John Kane jrkrideau at inbox.com
Tue Oct 2 15:19:27 CEST 2012


It's hard to know what's wrong with your code since you did not supply it.  

Please supply a small working example and some data.  To supply data use the dput() function, see ?dput() for details.   

John Kane
Kingston ON Canada


> -----Original Message-----
> From: zhyjiang2006 at hotmail.com
> Sent: Tue, 2 Oct 2012 11:38:31 +0800
> To: r-help at r-project.org
> Subject: [R] smoothScatter plot
> 
> 
> 
> 
> 
> 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
> ______________________________________________
> R-help at r-project.org 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.

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!




More information about the R-help mailing list