Skip to content

Commit 142c2ef

Browse files
Update ggplot2.R
1 parent 847d6ff commit 142c2ef

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

R/ggplot2.R

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,14 @@ banc_neuron_comparison_plot <- function(neuron1 = NULL,
215215

216216
# Save
217217
if(!is.null(filename)){
218-
ggplot2::ggsave(filename, plot = ga, width = width, height = height,
219-
bg = "#fcfcfa", dpi = 300, limitsize = FALSE)
218+
ggplot2::ggsave(filename,
219+
plot = ga,
220+
width = width,
221+
height = height,
222+
bg = "#fcfcfa",
223+
dpi = 300,
224+
limitsize = FALSE,
225+
create.dir = TRUE)
220226
message("saved as: ", filename)
221227
invisible()
222228
}else{

0 commit comments

Comments
 (0)