如果其他人试图自定义DataExplorer的plot_missing()函数中的颜色并对乐队标签进行硬编码,那么下面是一个简单的方法。df$species <- NA
plot_missing(df)正如您所看到的,得到的图形有按字母顺序排列的乐队标签“不好,移除”,这与协调颜色不太好“删除”颜色是紫色的,当它是最有意义的红色(由于ggplot2的默认颜色正在使用)。
我希望这个barplot中的颜色能自动地用RMSE column to be,RMSE column to be,橙,while the maximum figure in the RMSE column'e'), lb = c(9, 7, 9, 4, 9), RMSE = c(0.26177952, 0.11294586, 0.02452239, 0.08290467, 0.41488542))
ggplot2::ggplot(df1, ggplot2::aes(Methods, lb, fill = RMSE)) +