Re: [R] Updating a hexbinplot

2010-02-25 Thread Deepayan Sarkar
On Thu, Feb 25, 2010 at 1:24 AM, Marcin Kozak wrote: > Dear all, > > Considering this simple example of hexbinplot: > mixdata <- >     data.frame(x = c(rnorm(5000), rnorm(5000,4,1.5)), >                y = c(rnorm(5000), rnorm(5000,2,3)), >                a = gl(2, 5000)) > fig <- hexbinplot(y ~ x

[R] Updating a hexbinplot

2010-02-25 Thread Marcin Kozak
Dear all, Considering this simple example of hexbinplot: mixdata <- data.frame(x = c(rnorm(5000), rnorm(5000,4,1.5)), y = c(rnorm(5000), rnorm(5000,2,3)), a = gl(2, 5000)) fig <- hexbinplot(y ~ x | a, mixdata) print(fig) update(fig, colramp = BTC) produces a b