gridData: gridData

View source: R/gridData.r

gridDataR Documentation

gridData

Description

This function summarizes data onto a grid, creates PBSmapping polySet and polyData

Usage

gridData(
  Data,
  domain.poly,
  lvls,
  bcol = "YlGnBu",
  border = 1,
  FUN = mean,
  grid.size = 1,
  aspr = "calculate",
  sx,
  sy,
  ex,
  ey
)

Arguments

Data

= PBSmapping::EventData

domain.poly

= polygon the defines the total area from which to construct the grid, dervied from data if missing

lvls

= levels

bcol

= RColorBrewer color palette

border

= polygon border

FUN

= summary function to apply to data within a grid cell

grid.size

= size of the grid cells (km)

aspr

= aspect ratio for for creating square grid, default is to calculate from data

sx

= defines total extent to grid, defaults to the extent of the data

sy

= defines total extent to grid, defaults to the extent of the data

ex

= defines total extent to grid, defaults to the extent of the data

ey

= defines total extent to grid, defaults to the extent of the data

Author(s)

Brad Hubley


BradHubley/SpatialHub documentation built on April 6, 2024, 4:43 p.m.