在 R ggplot2/geom_tile 中,如何排除 'month==6 & category==c' 中的数据?(我的意思是数据不加入平铺填充渲染,但仍保留在图像中)
library(tidyverse)
plot_data <- data.frame(month=c(1,2,3,4,5,6),
category=c("a","b","c","a","b","c"),
value=c(53,20,41,32,67,120000))
plot_data %>%
ggplot(aes(x=month,y=category,fill=value))+geom_tile()+
geom_text(color='white',aes(label=value))+
scale_fill_gradientn(colors=c('white','yellow','orange','red'))