-2
Q
分組圖表,錯誤條
A
回答
1
假設您正在使用的手段和標準偏差爲你的錯誤吧,你可以這樣做這方面的工作(我創造,我認爲可能看起來像你這樣的數據幀):
library(tidyverse)
df <- data.frame(num = runif(160, min = 0, max = 1),
class = c(rep(c(rep("t-logistic", 4), rep("NSC", 4),
rep("Poisson", 4), rep("PCC", 4), rep("Sparse PCC", 4),
rep("Sup. PCC", 4), rep("Sparse PLS", 4), rep("SVM", 4)), 5)),
cat = c(rep(c("A", "B", "C", "D"), 40)))
df1 <- df %>%
group_by(class, cat) %>%
summarize(mean = mean(num), sd = sd(num))
ggplot(df1, aes(class, mean, color = cat))+
geom_point(position = position_dodge(width = 0.6))+
geom_errorbar(aes(class, ymin = (mean - 2*sd), ymax = (mean + 2*sd)),
position = position_dodge(width = 0.6))+
theme_bw()
相關問題
- 1. 用D3.js添加錯誤條到分組條形圖
- 2. 劍道圖分組錯誤
- 3. NSCFConstantString objectAtIndex:錯誤分組表
- 4. 分組條形圖
- 5. 使錯誤欄的組的條形圖
- 6. 繪圖錯誤條
- 7. MySQL分組錯誤
- 8. SQL分組錯誤
- 9. DDPLY分組錯誤
- 10. C3.js分組條形圖
- 11. 分組條形圖,[R
- 12. 分組條形圖ChartJS
- 13. 分組條形圖幀
- 14. MPAndroidChart分組條形圖onclick
- 15. 條形圖分組熊貓
- 16. swift分組條形圖嗎?
- 17. 分組條形圖chart.js
- 18. 分組條形圖GGPLOT2
- 19. 分組條形圖熊貓
- 20. 與分組列條形圖
- 21. 多級分組條形圖
- 22. 分組條形圖Matlab的
- 23. 分條錯誤在哪裏?
- 24. PostgreSQL按表只會有分組錯誤
- 25. Oracle:未按表達式分組錯誤
- 26. 不是按表達式分組:錯誤
- 27. 當有2個組時,在條形圖的條形圖中添加錯誤條
- 28. 分組多條堆積條形圖
- 29. Rails:按時間劃分錯誤圖表
- 30. 錯誤創建條形圖