[Daily-R] Beginning R 第五章练习
2012-12-11 16:56
92 查看
Ex1: Examine the orchis2 data object. Here you see a two-column data frame with a response variable (flower) and a predictor variable (site). Produce a histogram for the sprayed site. Now overlay a density plot.
ggplot(df, aes(x=value)) + geom_histogram(binwidth=., colour="black", fill="grey") + facet_grid(site ~ .)+ggtitle("Histogram for each site status")+xlab('Flower Number') + ylab('Count')+theme_bw()
with(orchis2, hist(orchis2$flower[orchis2$site=="sprayed"]))
hist(orchis2$flower[orchis2$site=="sprayed"])
相关文章推荐
- c primer plus(第五版)中文版 第五章 编程练习
- Python核心编程 练习 第五章
- 最后一本书 第五章 课后练习2,3,4
- Java入门 第一季第五章 编程练习解析
- 《APUE》第五章练习1
- 《python核心编程第二版》第五章练习解析
- 最后一本书 第五章上机练习1-4
- python核心编程第五章练习
- 《Python核心编程》第二版第97页第五章练习 续三
- c和指针第五章编程练习代码
- python学习第五章操作列表部分课后练习自己尝试的代码
- simply scheme 第五章 练习
- 《Python核心编程》第二版第97页第五章练习 -Python核心编程答案-自己做的-
- 《Python核心编程》第二版第97页第五章练习 续四
- SQL 第五章 -- 小型练习项目
- 《Python核心编程》第二版第97页第五章练习 续五
- 《算法导论》第五章-第4节_练习(参考答案)
- 《C与指针》第五章练习
- 模板元编程第五章练习(非答案)
- C++ Primer Plus第六版 第五章 编程练习答案