Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我需要在 R 中绘制一个箱线图。我有两个矩阵 a 和 b。我a为. b_ a矩阵b的箱线图应位于 箱线图的胡须上a。
a
b
有没有办法在 R 中做到这一点?
要将箱线图添加到现有图,只需使用参数add=TRUE,即:
add=TRUE
##Some data a = rnorm(20) b = rnorm(20, 2, 0.3) ##The plots boxplot(a) boxplot(b, add=TRUE, col=2)