[R-sig-Geo] zlim()...bubble plot

Simeon simeon.mangoti at hotmail.com
Wed Jul 11 16:00:26 CEST 2012


Hi,

I'm trying to modify the display of the bubble function to match to the
cutting classes that I desire. But I do not understand how to do it with the
key.entries argument.


Edzer Pebesma-2 wrote
> 
> 
> Sorry if I wasn't clear, but was
> 
> require(sp)
> data(meuse)
> coordinates(meuse) = ~x+y
> bubble(meuse["zinc"], maxsize=3, key.entries = c(10,100,1000,10000))
> 
> 

When I change the key.entries values, the legend is modified, but circles on
the map still the same.

bubble(meuse["zinc"], maxsize=3, key.entries = c(10,500,1500,10000))
bubble(meuse["zinc"], maxsize=3, key.entries = c(10,800,1600,10000))
bubble(meuse["zinc"], maxsize=3, key.entries = c(10,3000,10000))

My first intention is to use the classInt package to choose the classes of
value to show on the map. But I am blocked on the use of key.entries.

Maybe fortune(122) is the answer to my problem... or not.

As beginner on R and especially on lattice, I don't handle easily this kind
of function. Is there a bible on lattice and sp package that I should read
first?

Thanks,

Siméon





--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/zlim-bubble-plot-tp6049277p7580424.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list