【发布时间】:2020-02-09 12:18:23
【问题描述】:
这是我尝试过的,我不知道要使用什么代码来解决错误(每个小方块内只显示 2 个小数)。
ggplot(
grid,
aes(x = as.factor(mtry), y = as.factor(ntree), fill = error)
)+
labs(title = "Configuración de parámetros de Random Forest", x = "Número de predictores (mtry)", y= "Número de muestras bootstrap (ntree)" )+
geom_raster()+
scale_fill_continuous(trans = "reverse")+
theme_minimal()+
guides(fill = FALSE)
【问题讨论】: