boxplot跨r

问题描述 投票:0回答:1

i显然更改了随机数据集部分,插入我自己的数据:

data_frame<-data.frame( arrivare=9,8,9,9,9,9,9,9,9,9,9,9,7,9,9,9,9,9,9,9,9,9,9,9,5,9,9,9,9,8,9, tornare=9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,8,8, cambiare=9,8,9,9,9,9,9,8,9,9,9,9,9,8,9,7,9,9,9,9,9,9,9,9,9,9,9,9,9,9,8, continuare=8,8,6,9,8,5,2,7,7,9,1,2,7,8,1,9,9,9,8,9,6,9,1,6,9,1,8,9,8,9, vivere=9,3,7,1,9,9,2,8,5,6,3,2,9,6,9,2,9,9,5,1,9,1,9,1,1,1,1,9,9,8,7, abitare=1,1,1,1,1,7,1,1,2,7,1,2,3,1,1,1,1,1,5,1,1,1,1,1,1,1,1,1,1,1,3, suonare=7,1,8,1,7,7,1,9,8,8,1,1,9,6,1,9,1,9,3,3,2,9,1,7,5,1,9,9,8,9)

但是我肯定弄错了这部分:

您对如何解决此问题有任何建议吗?
谢谢你!

output

我猜你可以简单地运行

boxplot

boxplot(df)
r dataset multiple-columns boxplot
1个回答
0
投票

data

df <- data.frame( arrivare = c(9, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 7, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 5, 9, 9, 9, 9, 8, 9), tornare = c(9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8), cambiare = c(9, 8, 9, 9, 9, 9, 9, 8, 9, 9, 9, 9, 9, 8, 9, 7, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8), continuare = c(8, 8, 6, 9, 8, 5, 2, 7, 7, 9, 1, 2, 7, 8, 1, 9, 9, 9, 8, 9, 6, 9, 1, 6, 9, 1, 8, 9, 8, 9, 9), vivere = c(9, 3, 7, 1, 9, 9, 2, 8, 5, 6, 3, 2, 9, 6, 9, 2, 9, 9, 5, 1, 9, 1, 9, 1, 1, 1, 1, 9, 9, 8, 7), abitare = c(1, 1, 1, 1, 1, 7, 1, 1, 2, 7, 1, 2, 3, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3), suonare = c(7, 1, 8, 1, 7, 7, 1, 9, 8, 8, 1, 1, 9, 6, 1, 9, 1, 9, 3, 3, 2, 9, 1, 7, 5, 1, 9, 9, 8, 9, 9) ) enter image description here

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.