0

Probably a very simple question for ppl familiar with ggplot2: how can I suppress/remove plotting of the legend key? Here, for example, I'd like to plot just the tiles but not the value key. What needs to be added or changed to the code?

df <- expand.grid(X1 = 1:10, X2 = 1:10)
df$value <- df$X1 * df$X2

ggplot(df, aes(X1, X2)) + 
  geom_tile(aes(fill = value))
Chris Ruehlemann
  • 20,321
  • 4
  • 12
  • 34

0 Answers0