我想把0.05到1这个范围的标尺改成灰色
library(reshape2)
library(ggplot2)
data_m <- melt (data2, id.vars= c ( "ID" ))
p <- ggplot(data_m, aes(x=variable,y=ID)) +
xlab( "" ) +
ylab( "" ) +
theme_bw() +
theme(panel.grid.major = element_blank()) +
theme(legend.key=element_blank()) +
coord_fixed(ratio=0.3)+
theme(axis.text.x=element_text(angle=45,hjust=1, vjust=1)) +
theme(legend.position= "right" )+
geom_tile(aes(fill=value),color="black") +
scale_fill_fermenter(name = "FDR",
breaks = c(0,0.005,0.010,0.015,0.020,0.030,0.040,0.050,1),
limit = c(0, 1),
palette = 7 )+
guides (fill = guide_coloursteps(show.limits = T))