There are several options.
You can use the sunflowerplot function.
You can plot solid points with a small alpha value (not all graphics devices
support this), so that just a few points show up pale, but a lot show up as more
opaque.
You can use the symbols function (or bubbleplot, or my.symbols, or ..., from
other packages).
You can use the hexbin package and function (bioconductor) (I think this is my
prefered method).
Hope this helps,
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
(801) 408-8111
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Jan Akko Eleveld
> Sent: Thursday, August 21, 2008 3:11 PM
> To: r-help at r-project.org
> Subject: [R] HELP: how to add weight to a [x,y] coordinate
>
>
> Anyone who can help me with the following question?
>
>
> How can I add weight to [x,y] coordinates on a graph/scatterplot?
>
>
> Background:
> Monte Carlo simulation generated 730,000 [x,y] coordinates
> with a weight attached (from 0-0.5).
> Both x and y are rounded and fit on a raster with x-axis
> 0-170 months (smalles unit = 1 month) and y-axis 0-6
> (smallest unit=0.1).
> I would like every [x,y] to add its weight, so that after all
> 730,000 [x,y] are plotted, a maximum likelyhood becomes
> apparent through the size of the point that are made up by
> accumulated weights.
>
> Thank you in advance for any thoughts!
>
> Best, Akko Eleveld
>
>
>
> ______________________________________________
> 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.
>