1
所以我有一個數據幀,即是這樣:ggplot2 boxplots對我沒有任何意義,爲什麼會發生這種情況?
time,candidate_id,allocation_id,final_score,position data
...
然後我試圖使GGPLOT2箱線圖。我想要這個boxplot每個allocation_id
有一個不同的盒子。我試圖讓一個有:
ggplot(data=(allocation_info), aes(allocation_id, final_score))
而是獲得多箱線圖每個allocation_id
,我只是得到一個巨單箱線圖。任何人都知道爲什麼會發生這種情況?
運行你給的代碼不會讓任何一個情節類。如果您可以使用'dput(head(allocation_info))'添加一部分數據,並向我們顯示您運行的實際代碼,那麼導致該圖將有所幫助。但是,您不必將括號中的參數包含在'data'中,我發現最好在您的'aes(...)'調用中明確指出,例如'aes(x = allocation_id,y = finalscore)' – Justin 2012-08-10 22:09:49