-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from jread-usgs/master
updates re:issues
- Loading branch information
Showing
17 changed files
with
187 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
#'@title plot water temperatures from a GLM simulation | ||
#'@param file a string with the path to the netcdf output from GLM | ||
#'@param reference a string for 'surface' or 'bottom' | ||
#'@param num_cells number of vertical cells to use for heatmap | ||
#'@param fig_path F if plot to screen, string path if save plot as .png | ||
#'@param add F if create new figure, T if add to existing | ||
#'@param ... additional arguments passed to \code{par()} | ||
#'@keywords methods | ||
#'@seealso \code{\link{get_temp}} | ||
#'@seealso \code{\link{get_temp}}, \code{\link{plot_var}} | ||
#'@note | ||
#'\code{plot_temp} calls \code{\link{plot_var}} specifically for the \code{var_name = 'temp'}. | ||
#'\code{\link{plot_var}} uses the \code{\link[graphics]{layout}} function and so is restricted to a full page display. | ||
#'@author | ||
#'Jordan S. Read, Luke A. Winslow | ||
#'@examples | ||
#'sim_folder <- run_example_sim(verbose = FALSE) | ||
#'nc_file <- file.path(sim_folder, 'output.nc') | ||
#'plot_temp(file = nc_file, fig_path = FALSE) | ||
#'\dontrun{ | ||
#'plot_temp(file = nc_file, fig_path = '../test_figure.png') | ||
#'} | ||
#'plot_temp(file = nc_file, fig_path = 'test_figure.png', height = 3, reference = 'surface') | ||
#'@export | ||
plot_temp <- function(file, reference = 'surface', num_cells = 100, fig_path = F, add = F){ | ||
plot_temp <- function(file, fig_path = FALSE, reference = 'surface', ...){ | ||
|
||
plot_var(file, var_name = 'temp', col_lim = c(0,36), | ||
reference, num_cells, fig_path, add, bar_title = 'Temperature (\u00B0C)') | ||
plot_var(file, var_name = 'temp', fig_path, reference,...) | ||
|
||
} |
Oops, something went wrong.