楼主: lanhong1993
2402 1

[问答] 求助,关于图片的分辨率 [推广有奖]

  • 1关注
  • 1粉丝

已卖:286份资源

博士生

54%

还不是VIP/贵宾

-

威望
0
论坛币
2701 个
通用积分
3.4261
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
12167 点
帖子
214
精华
0
在线时间
141 小时
注册时间
2016-11-1
最后登录
2024-3-26

楼主
lanhong1993 发表于 2017-5-24 10:31:29 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
我想要导出固定分辨率的图片,图片大小和分辨率大小之间如何调整呢?
二维码

扫码加我 拉你入群

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

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

关键词:分辨率 图片 分辨率

沙发
尚目目 发表于 2017-5-25 19:59:43
自己指定图片大小和图片分辨率都没问题。至于大小和分辨率怎么搭配的话,你得自己去了解下。这个是 R Graphic Cookbook里介绍图片输出的片段:
You can specify a number of arguments to adjust the graph as per your needs. The simplest
one that we've already used is the filename. You can also adjust the height and width settings
of the graph:
    png("scatterplot.png",
    height=600,
    width=600)
The default units for height and width are pixels but you can also specify the units in inches, cm or mm:
    png("scatterplot.png",
    height=4,
    width=4,
    units="in")
The resolution of the saved image can be specified in dots per inch (dpi) using the
res argument:
    png("scatterplot.png",
    res=600)
If you want your graphs saved in a vector format, you can also save them as a PDF file usingthe pdf() function:
    pdf("scatterplot.pdf")

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

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