View source: R/ranger_crossRF_plot_util.R
plot_reg_res_list | R Documentation |
Plot a summary of the performance of a list of classification models
output from rf_clf.by_datasets
.
plot_reg_res_list(reg_res_list, outdir = NULL, plot_height = NULL)
reg_res_list |
A list object, the output of the function |
outdir |
The output directory. |
plot_height |
The plot height. |
Shi Huang
ranger rf_reg.by_datasets
df <- data.frame(rbind(t(rmultinom(7, 75, c(.21,.6,.12,.38,.099))),
t(rmultinom(8, 75, c(.001,.6,.42,.58,.299))),
t(rmultinom(15, 75, c(.011,.6,.22,.28,.289))),
t(rmultinom(15, 75, c(.091,.6,.32,.18,.209))),
t(rmultinom(15, 75, c(.001,.6,.42,.58,.299)))))
df0 <- data.frame(t(rmultinom(60, 300,c(.001,.6,.2,.3,.299))))
metadata<-data.frame(f_s=factor(c(rep("A", 15), rep("B", 15), rep("A", 15), rep("B", 15))),
f_c=factor(c(rep("C", 30), rep("D", 30))),
f_d=factor(c(rep("A", 15), rep("B", 15), rep("C", 15), rep("D", 15))),
age=c(1:30, 2:31)
)
reg_res_list<-rf_reg.by_datasets(df, metadata, s_category="f_c", c_category="age")
plot_reg_res_list(reg_res_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.