[R] levelplot blocks size

Greg Snow Greg.Snow at imail.org
Mon Dec 27 15:57:45 CET 2010


Look at the functions cut, findInterval, tapply, and aggregate. 

Sent from my iPod

On Dec 26, 2010, at 4:34 PM, "jonathan" <jon at than.biz> wrote:

> 
> Thanks for your advice, but my data is not decimals, so I don't need to round
> the values. Instead, what I need to really do is "group" the values into
> larger "blocks".
> 
> My data looks sort of like this:
> 
> x    y     z 
> 0    0    687 
> 0    1    64 
> 0    2    71 
> 0    3    55 
> 0    4    52 
> 0    5    51 
> 0    6    38 
> 0    7    38 
> 0    8    54 
> 0    9    49 
> ......... 
> ......... 
> ......... 
> 987   988    1
> 999   998    1
> 999   999    1
> 
> 
> But what I need to do is make it so that on the graph rather than having
> tiny little dots for each point (as shown in the bigplot diagram), there are
> bigger points, so say 0<=x<10, 0<=y<10 is one point in the lower left,
> rather than having 100 points for each x,y value.
> 
> The same strategy should then be applied to the whole graph.
> 
> Any ideas how to achieve this? I'm sure this is quite a common thing to do
> want to with heatmaps??
> 
> Thanks,
> 
> Jonathan
> 
> -- 
> View this message in context: http://r.789695.n4.nabble.com/levelplot-blocks-size-tp3089972p3164564.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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.



More information about the R-help mailing list