From looking at the code for bubble(), it doesn't appear there's any way to force special treatment of selected values.

However, a simple work around would be to simply exclude the zero values from the plot(s) by subsetting your data creating a1 and a2. If you really want *no* representation, you're done. If you want them represented with the smallest dot size, then add them in afterwards with plot(), xyplot(), or spplot(), depending.

Or, you could make a personal copy of bubble() [renamed, of course], and modify it to handle zeros in a special manner. That doesn't look too hard to do.

-Don

At 6:27 PM -0700 9/27/09, Marion Wittmann wrote:
Hello,

I am using the bubble plot and have been able to overlay two different data sets on the same graphic successfully. I would like to do the following and cannot:

1) suppress the zero values such that there is no representation of them on my plot (i.e., the "zeroes" show up as the smallest dot size, and I can't change this)

2) Give values to y or x axes with values, and labels

My script looks as such:

coordinates(data) = ~y + x
a1 = bubble(data, "Alive", zero.print = ".",maxsize = 5.0,
        key.entries = 4*(1:6),col=c(0,3))
a2 = bubble(handcore, "Dead", maxsize = 5.0, main = "",
        key.entries =   5*(0:10),col=c(0,4))

print(b1, more = TRUE)
print(b2, more = FALSE)


Thanks in advance for your help.

mw

Marion Wittmann, Ph.D.
Tahoe Environmental Research Center
University of California Davis

______________________________________________
R-help@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.


--
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
925-423-1062

______________________________________________
R-help@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.

Reply via email to