[R] R PNG graph width limitation

Yihui Xie xieyihui at gmail.com
Tue Sep 22 19:06:19 CEST 2009


Given the DPI=72, do you really need a graph that's wider than 450
inches? Or can you really read a picture that is so wide?

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-6609 Web: http://yihui.name
Department of Statistics, Iowa State University
3211 Snedecor Hall, Ames, IA



On Tue, Sep 22, 2009 at 11:30 AM, zphnabr <zhengping at gmail.com> wrote:
>
> Hi folks,
>
> I am trying to do a clustering and generate a long dendrogram in R on Linux
> server:
> =========
> data<-read.table(file="mean_ratio.txt.noheader",row.names=1,sep="\t",quote="\"")
> hc<-hclust(dist(data),"ward")
> png(file="mean_ratio.txt.noheader.ward.png",bg="white",pointsize=8,width=32767,height=1536)
> plot(hc,hang=-1)
> dev.off()
> =========
>
> I found that 32767 is the largest width I can go.  I tried 32768 and the
> graphics becomes all black.  I need to go higher since even with 32767 width
> is not enough for the dendrogram.  What is the problem and what is the
> workaround?
>
> Thanks,
>
> zphnabr
> --
> View this message in context: http://www.nabble.com/R-PNG-graph-width-limitation-tp25530814p25530814.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>




More information about the R-help mailing list