1
我想在一個圖中顯示彼此相鄰的n個bean圖。我從for循環接收各個值的向量。在每次迭代中,一個新的bean圖應該在前面的bean圖旁邊生成。我嘗試了幾種方法。在1個圖中繪製多個BeanPlot
傳遞值的列表:
allValues <- list() pdf("Values") for(f in files) { ... ... values = getValues(f) allValues <- append(allValues, values) } beanplot(allvalues, what=c(1,1,1,0)) dev.off()
這讓我奇怪的結果。
我也嘗試過一個data.frame 我試着在beanplot()
命令中加入參數「add = T」,並把beanplot()
放在for循環中。
任何幫助?
謝謝。我也得到了相同的結果,使用 allValues < - c(list(values),allValues) – user1192748