Skip to content

Commit

Permalink
Update ggplot2.R
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbates committed Oct 27, 2024
1 parent 847d6ff commit 142c2ef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions R/ggplot2.R
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,14 @@ banc_neuron_comparison_plot <- function(neuron1 = NULL,

# Save
if(!is.null(filename)){
ggplot2::ggsave(filename, plot = ga, width = width, height = height,
bg = "#fcfcfa", dpi = 300, limitsize = FALSE)
ggplot2::ggsave(filename,
plot = ga,
width = width,
height = height,
bg = "#fcfcfa",
dpi = 300,
limitsize = FALSE,
create.dir = TRUE)
message("saved as: ", filename)
invisible()
}else{
Expand Down

0 comments on commit 142c2ef

Please sign in to comment.