R Graphics window is not visible in putty or terminal

Moderator: NorbertKrupa

Post Reply
manikandanp
Newbie
Newbie
Posts: 2
Joined: Mon Feb 25, 2013 7:39 am

R Graphics window is not visible in putty or terminal

Post by manikandanp » Mon Feb 25, 2013 7:57 am

Dear Team,

I am using putty and working with R prompt.

For plotting the graph ,included the graphics library ad I ran the following graghics command :

library(graphics)

>plot(pressure)
>text(150, 600, “Pressure (mm Hg)\nversus\nTemperature (Celsius)”)

But it is not opening the graphical window.

I am able to see the Rplot.pdf file also.

Alternatively i have saved the output of pressure graph to png file using the below commands:


> png(file=”myplot.png”)

> plot(pressure)

> dev.off()

But when i go to the corrsponding folder and tried to read the output png file using CAT command.It shows only the encrypted data.

Please direct me for graphical window problem or reading the image output by referring the above.

Thanks & Regards,

Mani

id10t
GURU
GURU
Posts: 732
Joined: Mon Apr 16, 2012 2:44 pm

Re: R Graphics window is not visible in putty or terminal

Post by id10t » Thu Feb 28, 2013 1:15 pm

HI!

You need to enable X11 forwarding - but its works very slow.
Image

Post Reply

Return to “R Language Integration”