Skip to content

Commit

Permalink
Plot -- Don't plot and print when it is terra::plot or plot
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliot McIntire committed Jun 8, 2024
1 parent eb94939 commit d0458a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/Plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ Plots <- function(data, fn, filename,
names(ggListToScreen) <- gsub(names(ggListToScreen), pattern = " |(\\\n)|[[:punct:]]", replacement = "_")
Plot(ggListToScreen, addTo = gg$labels$title)
} else {
print(gg)
if (!(identical(fn, plot) || identical(fn, terra::plot)))
print(gg)
}
}
}
Expand Down

0 comments on commit d0458a6

Please sign in to comment.