楼主: wxxstar21
353 0

[学习分享] ggplot2学习3 [推广有奖]

  • 2关注
  • 3粉丝

已卖:86份资源

院士

63%

还不是VIP/贵宾

-

威望
0
论坛币
91 个
通用积分
190.9870
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
103977 点
帖子
1824
精华
0
在线时间
2271 小时
注册时间
2013-8-7
最后登录
2026-1-20

楼主
wxxstar21 发表于 2023-8-5 10:40:44 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
Colour, Size, Shape and Other Aesthetic Attributes
To add additional variables to a plot, we can use other aesthetics like colour,
shape, and size (NB: while I use British spelling throughout this book, ggplot2
also accepts American spellings). These work in the same way as the x and y
aesthetics, and are added into the call to aes():

• aes(displ, hwy, colour = class)
• aes(displ, hwy, shape = drv)
• aes(displ, hwy, size = cyl)
ggplot2 takes care of the details of converting data (e.g., ‘f’, ‘r’, ‘4’) into
aesthetics (e.g., ‘red’, ‘yellow’, ‘green’) with a scale. There is one scale for
each aesthetic mapping in a plot. The scale is also responsible for creating a
guide, an axis or legend, that allows you to read the plot, converting aesthetic
values back into data values. For now, we’ll stick with the default scales
provided by ggplot2.  


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:ggplot2 gplot plot GPL Responsible

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-29 16:06