R绘图不起作用

时间:2015-02-26 19:05:18

标签: r plot

我在Windows 8上使用R,并且我创建了这个小R脚本来绘制

x = c(1,2,3)
y = c(3,4,5)
plot(x,y,pch=19,cex=2)

然后我使用CMD,进入\ bin,然后执行

Rscript.exe script.R

我收到此错误

Error in (function (file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"), : 
can't open file 'Rplots.pdf'
Calls : plot -> plot.default -> dev.hold -> <Anonymous>
Execution stopped

感谢您的帮助

0 个答案:

没有答案