【发布时间】:2022-11-23 23:38:11
【问题描述】:
对于下面的数据,描述了某个模型的训练集和测试集中出现的癌症类型:
structure(list(cancer_type = c("Breast", "colorectal", "Melanoma",
"Lung Cancer", "Renal Cell Carcinoma", "Sarcoma", "Thymic Carcinoma",
"Bladder Cancer"), train_set = c(11, 4, 321, 28, 527, 5, 5, 242
), test_set = c(0, 2, 108, 13, 174, 0, 5, 77)), class = "data.frame", row.names = c(NA,
-8L))
我需要一个条形图来并排绘制,如下所示:
【问题讨论】:
-
你有没有尝试过?您到底在哪里遇到问题?