[R] problem with graphic devices
Erik Iverson
eriki at ccbr.umn.edu
Thu Jun 24 05:42:00 CEST 2010
> Question:
> After using graphic devices, such as pdf(), png().... in R, nothing happened.
>
> Screen Log:
> --------------------------
>> pdf("foo.pdf")
>> plot(1:10)
>> dev.off()
> null device
> 1
I'm guessing foo.pdf was created on your file system, in whatever directory
getwd() returns.
>>
> --------------------------
>
> There should automatically pop-up a screen and shows the chart, but nothing happened by using above code on my machine.
> Do I misunderstanding anything???
> I have tried the code under WINDOWS and LINUX and got the same result.
> plot(1:10)
is probably all you need to do. Why are you trying to create a pdf file?
More information about the R-help
mailing list