【发布时间】:2021-07-21 02:08:04
【问题描述】:
我使用以下代码创建了一个混淆矩阵:
ggplot(data, aes(x = Predicted, y = Actual)) +
geom_tile(aes(fill = Percentage), alpha = .8) +
geom_text(aes(label = Percentage), color = "white") +
scale_fill_gradientn(colours = rev(brewer.pal(5, "Spectral")), limits = c(0, 100)) +
scale_x_discrete(position = "top")
我想画 95% 和 100% 左右的黑色矩形。
【问题讨论】: