Triad sou.

2011-09-16から1日間の記事一覧

箱ひげ図に横棒を追加する

以下のようにすると簡単に横棒付きの箱ヒゲ図を作成できます。 require("ggplot2") df <- data.frame( x = rep(1:5, each = 50), y = rt(2500, 3) ) ggplot(df, aes(x = factor(x), y = y)) + stat_boxplot(geom = "errorbar", stat_params = list(width = 0…