splomPlot: Scatter Plot Matrix

View source: R/splomPlot.R

splomPlotR Documentation

Scatter Plot Matrix

Description

Produces a matrix of scatter plots

Usage

splomPlot(x, layout, Plot = list(name = "", what = "points", type =
  "solid", width = "standard", symbol = "circle", filled = TRUE, size =
  0.05, color = "black"), Panel = list(), axis.log = FALSE,
  axis.range = c(NA, NA), labels = 5, caption = "")

Arguments

x

the data to plot, must be either a matrix or a data frame.

layout

the output from setSplom

Plot

parameters defining the characteristics of the plot. See setPlot for a description of the parameters.

Panel

a list or a function, see Details.

axis.log

log-transform the x and y axis for all plots.

axis.range

set x- and y-axis ranges for all plots.

labels

set the number of labels for both the x and y axes. See linearPretty for details.

caption

the figure caption.

Details

Panel may be a tagged list, with any one of these options:
loess=span, where span is the span argument to loess.smooth;
line=opt, where opt='slr' for simple linear regression, or 'loc' for line of organic correlation, or '1:1' for the 1:1 line.
The format of the lines is taken from Plot.

Panel may also be a function with 3 arguments, x, y, and current, that adds to the plot and returns updated plot information. The function is called for each individual plot.

Value

Information about the graph.

Note

A call must be made to setPage and to setSplom to set up the graphics environment before calling splomPlot.

See Also

setPage, setSplom

Examples

## Not run: 
# See for examples of splomPlot:
vignette(topic="LineScatter", package="smwrGraphs")

## End(Not run)

USGS-R/smwrGraphs documentation built on Oct. 11, 2022, 6:11 a.m.