Hi,

you should check the distribution of meuse$zinc ( hist(), summary(),...)
before choosing the class intervals. A maximum of 10000 make no sense since
the maximum of meuse$zinc is less than 2000. Try, for example:

bubble(meuse["zinc"], maxsize=3, key.entries = c(100,500,700,2000))


Hope this help

On Tue, Jul 17, 2012 at 10:10 AM, Simeon <simeon.mangoti@hotmail.com> wrote:

> Hi,
>
> I desire to customise the key.entries parameter of the bubble function
> (package sp) to define classes of values to present on my map.
>
> I first try to use classIntervals (from classInt package) to define classes
> of values and then call it in the key.entries argument. But I didn't
> succeed.
>
> I try to play with key.entries, but I didn't succeed to modify the size of
> circles on the map, just on the legend. Where I'm doing wrong? or is
> key.entries the right argument to modify, in order to change the display of
> the bubble function?
>
> require(sp)
> data(meuse)
> coordinates(meuse) = ~x+y
> bubble(meuse["zinc"], maxsize=3, key.entries = c(10,100,1000,10000))
> 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))
>
>
> Maybe I don't understand well how to use this function, so if you have any
> idea or documentation that I should read, just let me know.
>
> Thanks,
>
> Siméon
>
>
> --
> View this message in context:
> http://r-sig-geo.2731867.n2.nabble.com/Class-range-on-bubble-plot-tp7580516.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

