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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -