R可视化06|ggplot2图层-标度图层(scale layer)-坐标轴篇

ggplot2标度图层(scale layer)可简单理解为图形中辅助您读图的一些组件,如不同颜色、形状、线性、大小、图例、坐标轴名称等等,详细介绍为。

Scales in ggplot2 control the mapping from data to aesthetics. They take your data and turn it into something that you can see, like size, colour, position or shape. They also provide the tools that let you interpret the plot: the axes and legends. You can generate plots with ggplot2 without knowing how scales work, but understanding scales and learning how to manipulate them will give you much more control.

In ggplot2, guides are produced automatically based on the layers in your plot. You don’t directly control the legends and axes; instead you set up the data so that there’s a clear mapping between data and aesthetics, and a guide is generated for you. This is very different to base R graphics, where you have total control over the legend, and can be frustrating when you first start using ggplot2. However, once you get the hang of it, you’ll find that it saves you time, and there is little you cannot do.Divide scales into three main groups:

  • Position scales and axes.(位置标度和坐标轴)
  • Colour scales and legends.(颜色标度和图例)
  • Other scales for non-position aesthetics.(其它非位置图像属性标度)

本文详细介绍位置标度和坐标轴 (Position scales and axes),续前篇

本文目录

1、标度名称都是什么?

2、位置标度和坐标轴 (Position scales and axes)

数值型变量(Numeric)位置标度和坐标轴

时间型变量(Date-time)位置标度和坐标轴

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qq_21478261

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值