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: zhyjiang2...@hotmail.com > Sent: Tue, 2 Oct 2012 11:38:31 +0800 > To: r-help@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@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! ______________________________________________ R-help@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.