[R] X11 error in png

Liaw, Andy andy_liaw at merck.com
Wed Nov 16 22:55:50 CET 2005


Does this help?
http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-do-I-produce-PNG-graphics-i
n-batch-mode_003f

Andy

From: Jack Zhu
> 
> Hi all,
> 
> When I ran a script containing the following codes:
> 
>     png(paste(savepath,"a_rnaplot.png",sep = ""),width = 
> fwidth, height = fheight,pointsize = fpointsize);
>     data_deg <- AffyRNAdeg(data_cel)
>     plotAffyRNAdeg(data_deg,col=cols,lty=1,lwd = "2")
>     #a <- par("fin")
>     legend("bottomright",sampleNames(data_cel),col=cols,lty=1)
>     RNAdegSlope = cbind("Sample Names" = 
> data_deg$sample.names, "RNA Deg Slope" = data_deg$slope)
>     write.csv(RNAdegSlope, file = 
> paste(savepath,"RNAdegSlope.csv",sep = ""))
>     dev.off()
> 
> I got this error message:
>     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 '' 
> 
> 
> My system:
> 
> Linux AS 4.0 64-bit
> 
> 
> 
> 
> 
> PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:
> /usr/bin:/usr/X11
> 
> 
> 
> Jack Zhu, MD, MS
> 
> Lombardi Cancer center
> Georgetown University
> 3970 Reservoir Rd, NW, NRB, W405b
> Washington, DC 20057
> Email: yz8 at georgetown.edu
> Tel: (202)-687-7451
> Web: http://clarkelabs.georgetown.edu
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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
> 
>




More information about the R-help mailing list