Skip to content

Commit

Permalink
setting suppress_print = TRUE by default to adhere to ggplots intende…
Browse files Browse the repository at this point in the history
…d behaviour; contributes to #21
  • Loading branch information
dbarneche committed Nov 22, 2022
1 parent b114fb0 commit 54c79c1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
11 changes: 6 additions & 5 deletions R/plotting_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ plume_class <- function(rsr) {
#' Format: c(longitude_min, longitude_max, latitude_min, latitude_max).
#' @param p Handle for an existing figure if you want to add a layer instead of creating a new figure.
#' If p is provided, Land_map is over-ridden and set to FALSE.
#' @param suppress_print Set to TRUE if you don't want the plots generated and saved. Defaults to TRUE.
#' @param return_poly Instead of only the figure handle, return a list containing the figure handle and the dataframe used by geom_plot(). Default FALSE.
#' @param label_towns Add labels for town locations to the figure. Default TRUE
#' @param strict_bounds Obsolescent: ignored
Expand All @@ -160,7 +161,7 @@ map_ereefs <- function(var_name = "true_colour",
zoom = 6,
box_bounds = c(NA, NA, NA, NA),
p = NA,
suppress_print = FALSE,
suppress_print = TRUE,
return_poly = FALSE,
label_towns = TRUE,
strict_bounds = FALSE,
Expand Down Expand Up @@ -609,7 +610,7 @@ if (return_poly) {
#' entire extent of the model output (though modified by the value of zoom).
#' Format: c(longitude_min, longitude_max, latitude_min, latitude_max). It is recommended to
#' also specify an appropriate value for zoom if specifying box_bounds.
#' @param suppress_print Set to TRUE if you don't want the plots generatedand saved. Defaults to FALSE.
#' @param suppress_print Set to TRUE if you don't want the plots generated and saved. Defaults to TRUE.
#' @param stride Default 'daily', but can otherwise be set to a numeric interval indicating how many time-steps to step forward for each frame.
#' @param verbosity Set 0 for just a waitbar, 1 for more updates, 2 for debugging information. Default 0.
#' @param label_towns Add labels for town locations to the figure. Default TRUE
Expand Down Expand Up @@ -641,7 +642,7 @@ map_ereefs_movie <- function(var_name = "true_colour",
scale_lim = c(NA, NA),
zoom = 6,
box_bounds = c(NA, NA, NA, NA),
suppress_print=FALSE,
suppress_print = TRUE,
stride = 'daily',
verbosity=0,
label_towns = TRUE,
Expand Down Expand Up @@ -1258,7 +1259,7 @@ map_ereefs_movie <- function(var_name = "true_colour",
#' Defaults to c('ivory', 'coral4').
#' @param scale_lim Upper and lower bounds for colour scale. Defaults to full range of data.
#' Ignored for true_colour plots.
#' @param suppress_print Default FALSE. If true, don't prdocue the map image.
#' @param suppress_print Set to TRUE if you don't want the plots generated and saved. Defaults to TRUE.
#' @param p Handle for an existing figure if you want to add a layer instead of creating a new figure.
#' If p is provided, Land_map is over-ridden and set to FALSE.
#' @return p Handle for the figure generated.
Expand All @@ -1279,7 +1280,7 @@ plot_map <- function(datapoly,
label_towns = TRUE,
zoom = 6,
p = NA,
suppress_print = FALSE,
suppress_print = TRUE,
gbr_poly = FALSE)
{
if ("datapoly" %in% names(datapoly)) datapoly <- datapoly$datapoly
Expand Down
4 changes: 3 additions & 1 deletion man/map_ereefs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/map_ereefs_movie.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/plot_map.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 54c79c1

Please sign in to comment.