【发布时间】:2021-01-22 09:35:56
【问题描述】:
我正在寻找一种将ggplot2 输出更改为灰度级的平滑方法。
这里是一个例子:
iris <- iris
library(mlr3)
example <- TaskClassif$new(id = "iris", backend = iris, target = "Species")
library(GGally, ggplot2, mlr3viz)
autoplot(example, type = "pairs")
而我希望有这样一个方案:
说实话,我无法用ggplot2 的cheatsheet 解决我的“问题”。我想我需要某事。喜欢+ scale_color_grey(start = 0.8, end = 0.2) 或+ scale_fill_grey(start = 0.8, end = 0.2)。
谢谢!
【问题讨论】: