With argument limits= you extend colorbar to minimum and maximum value you need. ggplot(df, aes(x, y, fill = z)) + geom_raster() + scale_fill_gradientn(colours= ...
確定! 回上一頁