使用 R 制作分组箱线图时遇到问题

时间:2021-03-25 12:51:50

标签: r ggplot2 boxplot

我基本上有一个包含三列的数据集:ER_SIR_100、ER_SIR_50 和 MONTH。 这是我使用的代码:

error100 <- dataset$ER_SIR_100
error50 <- dataset$ER_SIR_50
month <- dataset$MESN
boxplot(
    error100~month, main='Erro Si_100 x Mês', ylab='Error', xlab='Mês', las=1
)

and this is what a got

问题是,我希望看到 ER_SIR_100 和 ER_SIR_50 的箱线图并排显示,按月份分组。这可能吗?

0 个答案:

没有答案