[R] Legend in lattice

2011-06-15 Thread Julio Rojas
Dear all, I have been working in a plot based on figure 5.6 of the Lattice book (http://lmdvr.r-forge.r-project.org/figures/figures.html). I have already modified it to include the size of the circles as another variable, but I would like to modify the legend to show it (like they do it in

Re: [R] Legend in lattice

2011-06-15 Thread Walmes Zeviani
JĂșlio, Your code is not reproducible, you doesn't provide any data. So I did a minimal code that illustrates a possible procedure is the following n - 30 da - data.frame(x=runif(n), y=runif(n), z=runif(n)) da$z - cut(da$z, seq(0,1,0.25)) require(lattice) xyplot(y~x, da, cex=as.numeric(da$z),