Re: [R] R graphics with Linux (libpng)

From: Benilton Carvalho <bcarvalh_at_jhsph.edu>
Date: Thu 11 Jan 2007 - 18:06:58 GMT

I forgot to mention that

bitmap()

will do what you want without an X11 connection.

b

On Jan 11, 2007, at 1:09 PM, Rebecca Tagett wrote:

> Hello,
>
> I'm trying to adapt some R code that works on Windows so that it
> will work
> on a Linux machine.
>
> The command :
>
> png("myFile.png", width=600, height=600)
>
> fails claiming that it is impossible to establish a connection with
> X11.
> (Error messages are in French, so I'm not pasting them here!)
>
>
>
> I have libpng installed:
>
>> rpm -qa libpng*
>
> libpng-1.0.12-2
>
> libpng-devel-1.0.12-2
>
>
>
> So I don't understand why R thinks I'm trying to connect to X11. I
> haven't
> been able to find many examples of R graphics code specifically for
> Linux,
> but I have the impression that if libpng is installed, the graphics
> commands
> are identical. The libpng manual is not useful, because it does not
> mention
> use of libpng commands in an R environment.
>
>
>
> I'm using R 2.4.1, which I recently installed. Do I have to install
> a more
> recent libpng ? If so, do I have to reconfigure and remake R ?
>
>
>
> I've also read that no graphics devices are available under R CMD
> BATCH.
> Does that really mean that I can't create graphics from some R code
> that I
> launch in noninteractive mode?
>
>
>
> Thanks in advance !
>
>
>
> Rebecca Tagett
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
>
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.



R-help@stat.math.ethz.ch mailing list
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. Received on Fri Jan 12 05:13:32 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 11 Jan 2007 - 18:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.