ggplot(data=mtcars, aes(x=mpg, y=disp, color=qsec)) + geom_point() + scale_colour_gradient(low="lightgreen", high="darkgreen") 以上是三种常见的配色方案。 当然,也有其它的可以选择,比如:scale_fill_discrete 可以指定离散型配色;scale_colour_viridis_d() 和 scale_colour_viridis_c() 分别指定...
做OS pheatmap 中报错:Continuous value supplied to discrete scale 解决方式 1. 是查看code color 是否不对应ggplot(data = dat, aes( X, PFS, colour=CensorPFS)) + geom_point(alpha=0.5, size=1.75) + theme_bw()+ scale_colour_manual(values=c( "dodgerblue","darkgrey","firebrick2"))描述了三...
2. [1] "scale_fill_brewer" "scale_fill_continuous" "scale_fill_date" 3. [4] "scale_fill_datetime" "scale_fill_discrete" "scale_fill_distiller" 4. [7] "scale_fill_gradient" "scale_fill_gradient2" "scale_fill_gradientn" 5. [10] "scale_fill_grey" "scale_fill_hue" "scale_fill_...