Skip to content
Prev 374441 / 398513 Next

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

On 04/05/2018 3:04 AM, sunyeping via R-help wrote:
The length and width aren't the first and second parameters for any 
device, and length isn't a parameter at all.  Try

dev.new(height = 10, width = 10)

and you should get a bigger device if it will fit on your screen.  If it 
won't fit, then you might get a smaller one, and you'll need to choose a 
non-screen device such as png() or pdf() instead of the default device.

Duncan Murdoch

  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.