Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteDlp committed Dec 9, 2023
1 parent 2176f70 commit b7d1cfc
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion R/plotTemporal.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,20 @@ checkInputsPlotTemporal <- function(data, storm, var) {
#'
#' @examples
#' \donttest{
#' #Add example here
#' sds <- defStormsDataset()
#' st <- defStormsList(sds = sds, loi = "Vanuatu", names = "PAM", verbose = 0)
#'
#' df <- data.frame(x = c(168.33, 167.17), y = c(-17.73, -15.53))
#' rownames(df) <- c("Port_Vila", "Luganville")
#'
#' # Generate temporal series of wind on the points
#' TS <- temporalBehaviour(st, points = df, product = "TS", tempRes = 0.5, verbose = 0)
#'
#' # Plot temporal series of wind speed
#' plotTemporal(data=TS, storm="PAM")
#'
#' # Plot temporal series of wind direction
#' plotTemporal(data=TS, storm="PAM", var='direction')
#' }
plotTemporal <- function(data, storm, var = 'speed'){

Expand Down
15 changes: 14 additions & 1 deletion man/plotTemporal.Rd

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

0 comments on commit b7d1cfc

Please sign in to comment.