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 bad (non-updated) legend. Compare it with:

hexbinplot(y ~ x | a, mixdata, colramp = BTC)

What should I do to update the plot with the correct legend?

(I'm using R 2.10.1 under Windows XP).

Thanks in advance,
Marcin

______________________________________________
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