Re: [R] Filling points in a trellis object

2012-10-10 Thread ilai
On Wed, Oct 10, 2012 at 4:56 AM, Pierrick Bruneau wrote: > With the following code : > > dat1 <- matrix(nrow=4, ncol=2) > dat1[1,] <- c(-2, 1) > dat1[2,] <- c(-1.7, 0.9) > dat1[3,] <- c(0.1, 0.6) > dat1[4,] <- c(0.5, 0.5) > theplot <- xyplot(V2 ~ V1, as.data.frame(dat1), pch=c(4,1,5,4)) > plot(the

Re: [R] Filling points in a trellis object

2012-10-10 Thread ilai
On Wed, Oct 10, 2012 at 4:56 AM, Pierrick Bruneau wrote: > With the following code : > > dat1 <- matrix(nrow=4, ncol=2) > dat1[1,] <- c(-2, 1) > dat1[2,] <- c(-1.7, 0.9) > dat1[3,] <- c(0.1, 0.6) > dat1[4,] <- c(0.5, 0.5) > theplot <- xyplot(V2 ~ V1, as.data.frame(dat1), pch=c(4,1,5,4)) > plot(the

[R] Filling points in a trellis object

2012-10-10 Thread pbruneau
With the following code : I would like to plot 4 points, and have the circle and diamond shapes filled with grey. What am I missing ? Thanks by advance for your help, Pierrick Bruneau Research Fellow CRP Gabriel Lippmann -- View this message in context: http://r.789695.n4.nabble.com/Filling

[R] Filling points in a trellis object

2012-10-10 Thread Pierrick Bruneau
With the following code : dat1 <- matrix(nrow=4, ncol=2) dat1[1,] <- c(-2, 1) dat1[2,] <- c(-1.7, 0.9) dat1[3,] <- c(0.1, 0.6) dat1[4,] <- c(0.5, 0.5) theplot <- xyplot(V2 ~ V1, as.data.frame(dat1), pch=c(4,1,5,4)) plot(theplot, prefix="theplot") # for a predictable name grid.edit("theplot.xyplo