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

Edzer Pebesma edzer.pebesma at uni-muenster.de
Mon Feb 21 20:56:35 CET 2011


On 02/21/2011 07:15 PM, Jaime Burbano Girón wrote:
> Sorry If I wasn´t clear. I want to delimit 3 bubble plots to the same scale,
> this is that for the 3 plots: the size and of course the legend of the
> bubbles were plotted between -200 and 200.

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))
bubble(meuse["lead"], maxsize=3, key.entries = c(10,100,1000,10000))
bubble(meuse["copper"], maxsize=3, key.entries = c(10,100,1000,10000))

what you were looking for?

> When I do this with a "raster" object I use the argument zlim=c(-200,200) in
> the method plot(), but I don´t know if I can do the same with the bubble
> plot.

You may find all this confusing, and there is indeed little supervision
in R development, but CRAN packages do have documentation -- although I
cound not find zlim in help(plot, raster)

> Thanks again.
> 
> On Mon, Feb 21, 2011 at 12:34 PM, Edzer Pebesma <
> edzer.pebesma at uni-muenster.de> wrote:
> 
>> What do you need that the arguments maxsize and key.entries in ?bubble
>> do not allow you to do? Perhaps sth like
>>
>> library(fortunes); fortune(122)
>>
>> On 02/21/2011 05:29 PM, Jaime Burbano Girón wrote:
>>> Hi every body, I need to fix the size of the scale and the bubbles
>> plotted
>>> in function bubble(), I´ve tried with "zlim=c(min(x),max(x))", similar to
>>> function plot(), but it doesn´t work. Does any body know how can I do
>> this?
>>> Thanks in advance.
>>
>> plot is a method, not a function. The default does not have a zlim paramer:
>>
>>> plot(1:10, zlim=c(0,5))
>> Warning messages:
>> 1: In plot.window(...) : "zlim" is not a graphical parameter
>> 2: In plot.xy(xy, type, ...) : "zlim" is not a graphical parameter
>> 3: In axis(side = side, at = at, labels = labels, ...) :
>>  "zlim" is not a graphical parameter
>> 4: In axis(side = side, at = at, labels = labels, ...) :
>>  "zlim" is not a graphical parameter
>> 5: In box(...) : "zlim" is not a graphical parameter
>> 6: In title(...) : "zlim" is not a graphical parameter
>>
>> --
>> Edzer Pebesma
>> Institute for Geoinformatics (ifgi), University of Münster
>> Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
>> 8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
>> http://www.52north.org/geostatistics      e.pebesma at wwu.de
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
> 
> 
> 

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics      e.pebesma at wwu.de



More information about the R-sig-Geo mailing list