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
相关文章
相关标签/搜索