00.初めての医療統計rとezr:08.ggplot2でグラフの体裁を調整
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン | |||
00.初めての医療統計rとezr:08.ggplot2でグラフの体裁を調整 [2022/02/22] – [タイトルとx軸y軸] adash333 | 00.初めての医療統計rとezr:08.ggplot2でグラフの体裁を調整 [2022/02/22] (現在) – [タイトルとx軸y軸] adash333 | ||
---|---|---|---|
行 110: | 行 110: | ||
< | < | ||
scale_x_discrete(" | scale_x_discrete(" | ||
+ | </ | ||
+ | |||
+ | 値を変えて、同時に順序も変える(factor) | ||
+ | < | ||
+ | ggplot(summary_d, | ||
+ | geom_line() + | ||
+ | geom_point() + | ||
+ | scale_x_discrete( | ||
+ | limit = c(" | ||
+ | breaks = c(" | ||
+ | labels = c(" | ||
+ | ) + | ||
+ | scale_shape_manual(values=c(1, | ||
+ | scale_y_continuous(limits = c(20, 30)) + | ||
+ | geom_errorbar(aes(ymax = temp_mean + temp_sd, ymin = temp_mean - temp_sd), width = 0.1) + | ||
+ | theme_classic() | ||
</ | </ | ||
00.初めての医療統計rとezr/08.ggplot2でグラフの体裁を調整.1645561378.txt.gz · 最終更新: 2022/02/22 by adash333