gridmap: Creates a gridded map

View source: R/gridmap.R

gridmapR Documentation

Creates a gridded map

Description

A function that uses LatticeKrieg and elevation data to grid station based data and present a map.

Usage

gridmap(
  Y,
  FUN = "mean",
  colbar = list(pal = "t2m"),
  project = "lonlat",
  xlim = NULL,
  ylim = NULL,
  zlim = NULL,
  verbose = FALSE,
  plot = FALSE,
  new = TRUE
)

Arguments

Y

A station object or a PCA object.

FUN

A function or name of a function, e.g, "mean" or "trend"

colbar

A list specifying the color bar, e.g., list(col="precip", breaks=seq(1,10), rev=FALSE)

project

projection: "lonlat" or "sphere"

xlim

range of x-axis

ylim

range of y-axis

zlim

range of color axis

verbose

if TRUE print information about progress

plot

if TRUE display results as plots

new

if TRUE plot in new window

Examples


data("precip.NORDKLIM")
precip.gp <- gridmap(precip.NORDKLIM, plot=TRUE)
map(precip.gp)

metno/esd documentation built on April 29, 2024, 3:34 p.m.