ggplot2-1.0 图层概念,图层属性
来源:互联网 发布:二分搜索算法流程图 编辑:程序博客网 时间:2024/06/08 09:41
图层
图层以
geom_XXX(data,mapping,…,stat,position)
stat_XXX(data,mapping,…,geom,position)的形式出现.
其中mapping指的是映射(图层属性aes),position是调整对象的重合方式。一幅图中可多图层叠加,熟悉映射概念及其属性,便能迅速画图达到良好效果。
mapping
aes可调参数大致分成4类
position
position包括dodge,fill,identity,jitter,stack五个位置
example
head(diamonds) carat cut color clarity depth table price x y z1 0.23 Ideal E SI2 61.5 55 326 3.95 3.98 2.432 0.21 Premium E SI1 59.8 61 326 3.89 3.84 2.313 0.23 Good E VS1 56.9 65 327 4.05 4.07 2.314 0.29 Premium I VS2 62.4 58 334 4.20 4.23 2.63p <- ggplot(diamonds) ##新建画图对象p <- p+geom_point(aes(x=carat,y=price,colour=color,shape=color)) ##增加散点图层。
g <- ggplot(diamonds,aes(table,depth))+xlim(50,70)+ylim(50,70)jit <- position_jitter(width=0.5)g <- g+geom_jitter(position = jit,colour="black",alpha = 1/10)g
0 0
- ggplot2-1.0 图层概念,图层属性
- ggplot2 1.1 图层属性(查询表)
- ggplot2学习笔记之构建图层
- ggplot2 实例-时间序列图(图层概念,图例修改)
- arcgis 图层概念
- ggplot2作图详解5:图层语法和图形组合
- ggplot2作图详解:图层语法和图形组合
- ArcEngine图层属性查询
- cocos studio 场景 图层 节点 概念
- 图层的基本使用 自定义图层 图层属性
- ArcEngine_CAD(2)查看CAD图层属性
- AE中获取图层属性信息
- 要素图层范围查询属性
- 添加ArcGismap 内置图层属性模块
- 图层
- 图层
- 图层
- 图层
- 用GDB调试程序(六)
- hdu 2546 饭卡(贪心+01背包)
- Activity四种启动模式
- linux cut命令
- errno的前世今生
- ggplot2-1.0 图层概念,图层属性
- 解决首次安装时点击“打开”与点击应用图标开启应用冲突
- 设计模式(结构型)之适配器模式(Adapter Pattern)
- 恢复误删用户桌面进程导致桌面上的图标和任务栏
- 重载与模板
- Android App项目开发规范总结(四)
- 用GDB调试程序(七)
- 驱动学习-hello world
- Struts 2中实现文件下载(修正中文问题)