R Graphics Cookbook 第3章 – Bar Graphs

3.1 基本條形圖 library(ggplot2) library(gcookbook) pg_mean   #這是用到的數據    group weight  1  ctrl  5.032  2  trt1  4.661  3  trt2  5.526   ggplot(pg_mean, aes(x=group, y=weight)) + geom_bar(stat="identity") x
相關文章
相關標籤/搜索