r - set default device (png) with default height and width -


i'm setting default device png options(device="png").

for 1 plot, can make png in r particular dimensions using png(...):

v <- 1:10 png("squared.png", width = 960, height = 480) plot(v, v**2) dev.off() 

but want set default height/width (just i'm setting default device) plots come out desired height , width.

why don't re-define png? if type png console, r display function code. can copy , paste r script, changing defaults. then, autocomplete of function arguments still work.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -