savePlot(grDevices)
savePlot()所属R语言包:grDevices
Save Windows Plot to a File
保存Windows打印到文件
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Saves the current plot on a windows device to a file.
保存windows设备文件上的当前的图。
用法----------Usage----------
savePlot(filename = "Rplot",
type = c("wmf", "emf", "png", "jpg", "jpeg", "bmp",
"tif", "tiff", "ps", "eps", "pdf"),
device = dev.cur(),
restoreConsole = TRUE)
参数----------Arguments----------
参数:filename
The filename under which to save the plot. Tilde-expansion (see path.expand is supported.
下的文件名保存的图。波浪线膨胀(见path.expand支持。
参数:type
The type of plot, Windows metafile, PNG, JPEG, BMP (Windows bitmap format), TIFF, PostScript or PDF.
图类型,Windows图元文件,支持PNG,JPEG,BMP(Windows位图格式),TIFF格式,PostScript或PDF格式。
参数:device
A device number of a windows device, by default the current device.
windows设备的设备号,默认情况下,当前的设备。
参数:restoreConsole
See the "Details" section of windows.
见“详细资料”部分windows。
Details
详情----------Details----------
This is equivalent to selecting the "Save as" menu item on the "File" menu of a windows device.
这是相当于选择菜单项保存windows设备的“文件”菜单上。
If filename does not include a dot ("."), savePlot will add the file type as an extension; that is, the filename will be set to paste(filename,type,"."). If a dot is present in filename, the filename is assumed to include an extension and is used without change.
savePlot如果filename不包含一个点(。),将作为扩展添加文件类型,文件名会被设置为paste(filename,type,".")。如果一个点是在filename目前,假定文件名,包括扩展,并没有改变。
Using filename as "clipboard" or "" with type = "wmf" will copy to the clipboard.
使用filename"clipboard"或""用type = "wmf"将复制到剪贴板。
Types "eps" and "ps" are the same thing apart from the extension for the default filename. Similarly "wmf"/"emf", "jpeg"/"jpg" and "tiff"/"tif".
类型"eps"和"ps"默认filename除了扩展同样的事情。同样"wmf"/"emf","jpeg"/"jpg"和"tiff"/"tif"。
JPEG quality is 75%, and TIFF is saved without compression.
JPEG质量为75%,和TIFF无压缩保存。
值----------Value----------
None, but a plot file will be created.
没有,但一个图的文件将被创建。
注意----------Note----------
There is a similar function of the same name but fewer types for cairo-based X11 devices on Unix-alikes
开罗的X11在Unix相似者的设备的名称相同,但较少的类型有一个类似的功能
参见----------See Also----------
png, dev.print
png,dev.print
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|