corGram: Correlogram

View source: R/corGram.R

corGramR Documentation

Correlogram

Description

Creates a correlogram for irregularly spaced data.

Usage

corGram(x, y, Plot = list(name = "Standardized Observations", what =
  "points", type = "solid", width = "standard", symbol = "circle", filled =
  TRUE, size = 0.03, color = "gray40"), CorGram = list(band = 0.15,
  kernel = "normal", color = "black", width = "standard", add0line = TRUE),
  yaxis.range = c(-3, 3), xaxis.range = c(0, 1.5), ylabels = 7,
  xlabels = 4, xtitle = "Difference in Time, in Years",
  ytitle = "Standardized Serial Correlation", caption = "",
  margin = c(NA, NA, NA, NA))

Arguments

x

decimal time.

y

residuals or other observations, these will be scaled, but not centered.

Plot

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

CorGram

control parameters of the correlogram line. See Details.

yaxis.range

set the y-axis range.

xaxis.range

set the x-axis range.

ylabels

set the y-axis labels. See linearPretty for details.

xlabels

set the x-axis labels. See linearPretty for details.

xtitle

the x-axis title (also called x-axis caption).

ytitle

the y-axis title (also called y-axis caption).

caption

the figure caption.

margin

set the plot area margins, in units of lines of text. Generally all NA or the output from setGraph if appropriate.

Details

CorGram is a list with these components:

band

a measure of the bandwidth used by locpoly

kernel

the kernel used, currently ignored

color

the color of the line representing the correlogram

width

the line width of the line representing the correlogram

add0line

logical, if TRUE, then add the 0 line; if FALSE, then do not draw the 0 line

Value

Information about the graph.

Note

A call should be made to setPage to set up the graphics environment before calling corGram.

See Also

setPage

Examples

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

## End(Not run)

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