-1
我的數據如下分組條形圖中的R與分類數據
Q1 Q2 Q3 Q4
Strongly Agree Strongly Agree Agree Agree
Agree Strongly Agree Agree Strongly Agree
Strongly Agree Disagree Strongly Disagree Disagree
Disagree Agree Strongly Agree Agree
Agree Agree Disagree Disagree
Strongly Disagree Strongly Disagree Disagree Disagree
我想使具有頻率高度的分組柱狀圖。圖表底部的組是「非常同意」,「同意」,「不同意」和「非常不同意」。然後在每個組中會有不同的問題。
這是我到目前爲止有:
Question <- c(df$`Q24#1_4`, df$`Q24#1_1`, df$`Q24#1_2`, df$`Q24#1_3`)
ggplot(Question, aes(x = c('Strongly Disagree', 'Disagree', 'Agree',
'Sgrongly Agree'))) + geom_bar()
你應該[整齊](http://garrettgman.github.io/tidying/)數據先用'tidyr ::收集(DF)'。 –