• R语言
  • R绘图的结果, 如何才能正确保存成ps文件?

绘图之后, 用了
dev.print(device=postscript, file='freq_rq.ps', width=8.5, height=11, horizontal=TRUE)


来输出, 结果在gsview中可以正常显示, 但在adobe Illustrator中, 所有的坐标是landscape放置的, 而图形是 portrait放置的, 两者完全脱节, 怎么回事?



在屏幕上用右键保存则不会出现这种问题.



在绘图之前没有设置任何设备.



请教高手: 出现这个问题我错在哪儿?





另外, postscript的字体family要怎么设置? 我想用"sans"的, 每次都报错.



谢谢~
看帮助的Family部分,没有"sans"这个选项。



Postscript的设置很复杂的,至少我是没耐心看完的…… 我一般都用PDF,写LaTeX的时候用pdfLaTeX



你说的横竖问题我就不清楚了
哦.....



谢谢版主.



但在par()的family里, 有讲:

[quote]family

The name of a font family for drawing text. The maximum allowed length is 200 bytes. This name gets mapped by each graphics device to a device-specific font description. The default value is "" which means that the default device fonts will be used (and what those are should be listed on the help page for the device). Standard values are "serif", "sans" and "mono", and the Hershey font families are also available. (Different devices may define others, and some devices will ignore this setting completely.) This can be specified inline for text. [/quote]
par的参数和postscript不一样,后者要更复杂
噢,谢谢版主. 看来我也还是用个别的格式好了