On 16/01/2015 1:18 PM, Nafiseh Mehdipour wrote:> Hi,
>
> I am writing regarding to my problem about using "plot" function.
I am using "R x64 3.1.1" (installed on Windows 7 SP1 (laptop Sony
VGN-SR) ), and when I use type this code:
>
>
>> x <- c(-30,30)
>> y <- c(-5,5)
>> plot.window(x , y)
>
> or any other form of "plot" function, it doesn't show
anything. I used
What are you expecting to see? As the help says, plot.window() doesn't
plot anything, it just sets up the coordinates. Use plot(x, y) to plot
the two points in your vectors.
Duncan Murdoch
>
>> dev.off()
>
> to set the graphic device to the default of R or null, but it didn't
help. Then I used:
>
>> png(filename="name.png")
>> plot.window(x , y)
>> dev.off()
>
> to see the output as an image instead. But this is time consuming for me to
do that every time to see the output. Please help me to resolve this problem.
>
> Very looking forward to your reply.
> Thank you.
>
> Regards,
> Nafiseh.
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>