plotMultipleData: Display maps from multiple data in one plot.

View source: R/cdtPlot_MultipleData_function.R

plotMultipleDataR Documentation

Display maps from multiple data in one plot.

Description

Display maps from multiple data in one plot.

Usage

plotMultipleData(
  dataObj,
  shp = NULL,
  xlim = NULL,
  ylim = NULL,
  dataTitle = NULL,
  plotTitle = NULL,
  colorkeyTitle = "",
  presetCol = list(color = "tim.colors", reverse = FALSE),
  userCol = list(custom = FALSE, color = NULL),
  userLvl = list(custom = FALSE, levels = NULL, equidist = FALSE),
  ptsOpt = list(pch = 20, cex = 1),
  shpOpt = list(col = "black", lwd = 1)
)

Arguments

dataObj

list of data. Each data has the form list(x, y, z, type).
Valid options for type: "grid" or "points".

  • "grid": x vector, y vector, z matrix of dim equals c(length(x), length(y))

  • "points": x, y, z vectors same length

shp

sp object of class SpatialPolygons or SpatialPolygonsDataFrame

xlim, ylim

vector of length 2.

dataTitle

vector same length as dataObj, title for each data

plotTitle

character, title of the plot

colorkeyTitle

character, title of the colorkey

presetCol

list, preset colors for colorkey

userCol

list, customized colors for colorkey

userLvl

list, customized level for colorkey

ptsOpt

list, options for points data

shpOpt

list, options for the shp layer


rijaf-iri/CDT documentation built on July 3, 2024, 2:54 a.m.