Skip to content

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

3 messages · 孙业平, Duncan Murdoch, sunyeping

#
------------------------------------------------------------------From:Duncan Murdoch <murdoch.duncan at gmail.com>Send Time:2018 May 4 (Fri) 17:24To:??? <sunyeping at aliyun.com>; David Winsemius <dwinsemius at comcast.net>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?
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.
"dev.new(height?=?10,?width?=?10) " doesn't work neither. It produces a device with a size of [?5.760417, 5.750000]. My computer is a usual 14 inch thankpad labtop. Is 5 ~ inches really the up limit of the size of the R graphic device in computer screen? I doubt it.
#
On 05/05/2018 11:33 AM, ??? wrote:
You ask questions in a very rude way.  I'm going to let you figure this 
one out by yourself.

Duncan Murdoch
#
------------------------------------------------------------------From:Duncan Murdoch <murdoch.duncan at gmail.com>Send Time:2018 May 6 (Sun) 04:58To:??? <sunyeping at aliyun.com>; David Winsemius <dwinsemius at comcast.net>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?
On?05/05/2018?11:33?AM,?????wrote:
You?ask?questions?in?a?very?rude?way.??I'm?going?to?let?you?figure?this?
one?out?by?yourself.

Duncan?Murdoch
Sorry, Professor. Murdoch,
I did not realize my way of asking questions was rude, and I didn't mean to offend. Would you please give me some hints and help me solve the problem if there is still possibility?
Best regards,Yeping