ggplot2中显示坐标轴_R可视化11|ggplot2-图层图形语法 (3)

2bc842d1172834464c632af75ea7885c.png
本文系统介绍ggplot2的统计变换( stat)、位置设置( Position adjustments)和标度( scale)。

本文目录

6、统计变换(stat)
  stats can be created with a geom_ function
  stats can’t be created with a geom_ function

7、 位置设置(Position adjustments)
  条形图中stack|fill|dodge
  散点图中nudge|jitter|jitterdodge

8、标度(scale)
  marker的形状和大小
  图例和坐标轴

6、统计变换(stat

将data经过一种统计方法整理,然后再绘图,ggplot2的统计方法如下,都是以stat_开头的函数。

9fe869a6ba2b6bb6b8b69eca5f05d1a3.png

可以分为两类:

stats can be created with a geom_ function

  • stat_bin(): geom_bar(), geom_freqpoly(), geom_histogram()
  • stat_bin2d(): geom_bin2d()
  • stat_bindot(): geom_dotplot()
  • stat_binhex(): geom_hex()
  • stat_boxplot(): geom_boxplot()
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值