Skip to content
Prev 374439 / 398513 Next

why the length and width of a plot region produced by the dev.new() function cannot be correctly set?

------------------------------------------------------------------From:David Winsemius <dwinsemius at comcast.net>Send Time:2018 May 4 (Fri) 13:25To:??? <sunyeping at aliyun.com>Cc:R Help Mailing List <r-help at r-project.org>Subject:Re: [R] why the length and width of a plot region produced by the dev.new() function cannot be correctly set?
Your?test?is?all?mangleed?together.?You?failed?in?your?duty?to?read?the?list?info?and?the?Posting?guide?.?NO?HTML!
The?size?of?the?device?is?not?the?size?of?the?plot?region.?You?need?to?take?into?account?the?margins.?See??par
Thank you, David.I have read the par() document. Clearly the size of the plot region is smaller than or equal to the divice size. However, if I produce a graphic device with dev.new (length, width) or other functions, I find the largest ?width of the new device is always 5.3 inches whatever the values I set, and the length of it is alway smaller than what I set. Could you tell me how to produce a graphic divice with correct size that I set? I need this function because the graphic divice cannot accomendate all of the graph I make with some of plot tools such as ggtree. In ggtree plot, part of the tree tips label are invisible (https://www.dropbox.com/s/87gyusx7ay1xxu8/tree.pdf?dl=0) even I set "par(mar=rep(0,4))". So I think I must plot the tree on a larger graphic device. ?Best regards.?
David?Winsemius
Alameda,?CA,?USA

'Any?technology?distinguishable?from?magic?is?insufficiently?advanced.'???-Gehm's?Corollary?to?Clarke's?Third?Law