- 184
- 0
- 约1.12万字
- 约 10页
- 2021-02-12 发布于山西
- 举报
六六 DATA
R 语言高级绘图代码(经典收藏版)
一定要在Rstudio 中打开,下述代码自带标题,方便索引!
一定要在Rstudio 中打开,下述代码自带标题,方便索引!
一定要在Rstudio 中打开,下述代码自带标题,方便索引!
话不多说,直接上干货!
##lattice 绘图######
library(lattice)
?state
states - data.frame(state.x77,
state.name = dimnames(state.x77)[[1]],
state.region = state.region)
xyplot(Murder ~ Population , data = states)
xyplot(Murder ~ Population | state.region, data = states)
xyplot(Murder ~ Population | state.region, data = states, main=Murder
vs. Pop
原创力文档

文档评论(0)