Skip to content

Commit

Permalink
example hatching spatialPlot
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Bano Medina authored and Jorge Bano Medina committed Mar 1, 2021
1 parent dfddcab commit 14757ac
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions R/spatialPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
#' @examples \donttest{
#' require(transformeR)
#' require(climate4R.datasets)
#' require(sp)
#' data("CFS_Iberia_tas")
#' # Climatology is computed:
#' clim <- climatology(CFS_Iberia_tas, by.member = TRUE)
Expand Down Expand Up @@ -170,6 +171,19 @@
#' backdrop.theme = "countries",
#' color.theme = "BrBG",
#' rev.colors = TRUE, cex = 2.5)
#'
#' # Station data (hatching):
#' data("VALUE_Iberia_pr")
#' # Just as an example, stations with a precip climatology lower than 3mm/day
#' ind <- which(climatology(VALUE_Iberia_pr)$Data < 3)
#' spatialPlot(climatology(VALUE_Iberia_pr),
#' backdrop.theme = "countries",
#' colorkey = TRUE,
#' sp.layout = list(list("sp.points",
#' SpatialPoints(VALUE_Iberia_pr$xyCoords[ind,]), pch = 4, cex = 1.5,
#' first = FALSE, col = "black")))
#'
#'
#' }


Expand Down
14 changes: 14 additions & 0 deletions man/spatialPlot.Rd

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

0 comments on commit 14757ac

Please sign in to comment.