6
私の目標は、Rでボックスプランを作成することです(これはggplot2で行う必要はありませんが、私が今使っていることです)マイナステキスト):ここでggplot2のエラーバーからエンドポイントを削除する
は、私がこれまで持っているコードです:
dat <- read.table(file = "https://www.dropbox.com/s/b59b03rc8erea5d/dat.txt?dl=1", header = TRUE, sep = " ")
library(ggplot2)
p <- ggplot(dat, aes(x = Subscale, y = Score, fill = Class))
p + stat_boxplot(geom = "errorbar", width = 1.2, size = 2.5, color = "#0077B3") +
geom_boxplot(outlier.shape = NA, coef = 0, position = position_dodge(.9)) +
scale_fill_manual(values = c("#66CCFF", "#E6E6E6")) +
theme(panel.background = element_rect(fill = "white", color = "white"))
明らかに、私が持っているものと実際の例の違いはたくさんありますが、今はエラーバーからエンドポイントを削除することに集中しています。 stat_boxplot
機能です。誰も私が望む効果を得る方法を知っていますか?
うわー、私はそれが簡単だろうとは思いませんでした!どうもありがとうございます!私はwidthプロパティが完全に何か他のことをしていると思った。 – psychometriko