Merge branch 'change-plot'
* change-plot: Change default aspect ratio for graphs Add optional width and height arguments save plots
This commit is contained in:
commit
70ed15c2b8
4
utils.R
4
utils.R
@ -11,9 +11,9 @@
|
|||||||
# or NULL if not needed.
|
# or NULL if not needed.
|
||||||
# Default filesize is 3000x3000 px and 300 dpi resolution.
|
# Default filesize is 3000x3000 px and 300 dpi resolution.
|
||||||
#
|
#
|
||||||
sma_plot_file <- function(fname, ftype, fun) {
|
sma_plot_file <- function(fname, ftype, fun, width = 4000, height = 3000) {
|
||||||
# Open file for writing
|
# Open file for writing
|
||||||
ftype(filename = fname, width = 3000, height = 3000, res = 300)
|
ftype(filename = fname, width = width, height = height, res = 300)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Write plot into variable, then printing it manually. This is
|
# Write plot into variable, then printing it manually. This is
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user