Re: [R] unable to start device PNG and unable to open connection to X11 display

From: Henrik Bengtsson <hb_at_stat.berkeley.edu>
Date: Mon, 03 Mar 2008 04:26:54 -0800

On Mon, Mar 3, 2008 at 1:25 AM, Ng Stanley <stanleyngkl_at_gmail.com> wrote:
> Hi,
>
> I consulted ?png, and it uses X11. is there any way to save plots into png,
> without using X11 ?

See "See also" under help(png) for alternatives. Rule of thumb: If you get a reply from BR that you don't get the first time you read it, then read it again - the answer is there.

See also thread '[R] jpeg in batch mode' on 2008-02-21, cf. https://stat.ethz.ch/pipermail/r-help/2008-February/155021.html

/Henrik

>
>
>
>
> On 3/3/08, Prof Brian Ripley <ripley@stats.ox.ac.uk> wrote:
> >
> > Please consult the help page for png.
> >
> > On Mon, 3 Mar 2008, Ng Stanley wrote:
> >
> > > Hi,
> > >
> > > I have installed R on a computational cluster, and am using putty to
> > access
> > > R. Please help on how to solve the problem of saving png files.
> > >
> > >> png(file="myplot.png", bg="transparent")
> > > Error in X11(paste("png::", filename, sep = ""), width, height,
> > pointsize,
> > > :
> > > unable to start device PNG
> > > In addition: Warning message:
> > > unable to open connection to X11 display ''
> > >
> > > [[alternative HTML version deleted]]
> > >
> > > ______________________________________________
> > > R-help_at_r-project.org 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.
> > >
> >
> > --
> > Brian D. Ripley, ripley_at_stats.ox.ac.uk
> > Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
> > University of Oxford, Tel: +44 1865 272861 (self)
> > 1 South Parks Road, +44 1865 272866 (PA)
> > Oxford OX1 3TG, UK Fax: +44 1865 272595
> >
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org 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_at_r-project.org 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 Mon 03 Mar 2008 - 12:37:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 03 Mar 2008 - 13:30:18 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.

list of date sections of archive