getPlotdimensions: find the plotting dimensions for quilt.plot when using a...

View source: R/getPlotDimensions.R

getPlotdimensionsR Documentation

find the plotting dimensions for quilt.plot when using a regular grid

Description

find the plotting dimensions for quilt.plot when using a regular grid

Usage

getPlotdimensions(x.pos, y.pos, segmentWidth, segmentLength)

Arguments

x.pos

Vector of x-coordinates in dataset

y.pos

Vector of y-coordinates in dataset

segmentWidth

Width of each grid cell of data (in same units as x.pos)

segmentLength

Length of each grid cell of data (in same units as y.pos)

Examples

#' # load data
data(ns.data.re)

getPlotdimensions(ns.data.re$x.pos, ns.data.re$y.pos, segmentWidth=500, segmentLength=500)


lindesaysh/MRSea documentation built on May 11, 2024, 11:30 p.m.