1

Would you please guide me how I can remove the legend of hexbinplot? I set legend = NULL, however, it does not work.

CODE:

hexbinplot(V1 ~ V2, 
           data = magic,
           xbins = 100,
           legend = NULL,
           type = c("g", "r"),
           ylab = 'V1',
           xlab = 'V2',
           colramp=my_colors)
  • 3
    From `?hexbinplot` the help page says *colorkey: logical, whether a legend should be drawn.*, so try `colorkey=FALSE` – user20650 Jun 11 '17 at 16:26
  • ps: its generally best to provide a [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) including all packages. – user20650 Jun 11 '17 at 16:28
  • 1
    @user20650, post as answer? – Ben Bolker Jun 11 '17 at 17:22

1 Answers1

0
hexbinplot(V1 ~ V2, 
           data = magic,
           xbins = 100,
           colorkey = FALSE,
           type = c("g", "r"),
           ylab = 'V1',
           xlab = 'V2',
           colramp=my_colors)
Markm0705
  • 1,340
  • 1
  • 13
  • 31