qqPlot.lcens: Q-Q Plot

View source: R/qqPlot.R

qqPlot.lcensR Documentation

Q-Q Plot

Description

Produces a quantile-quantile (q-q) or a q-normal plot: methods for "lcens" and "qw" data.

Usage

## S3 method for class 'lcens'
qqPlot(x, y, alpha = 0.4, Plot = list(name = "", what =
  "points", type = "solid", width = "standard", symbol = "circle", filled =
  TRUE, size = 0.09, color = "black"), LineRef = list(name = "", what =
  "lines", color = "black"), Line1.1 = list(name = "Line of equality", what =
  "lines", color = "gray"), yaxis.log = FALSE, yaxis.range = c(NA, NA),
  xaxis.log = FALSE, xaxis.range = c(NA, NA), ylabels = 7, xlabels = 7,
  xtitle, ytitle, caption = "", margin = c(NA, NA, NA, NA),
  Censored = list(name = "", what = "points", symbol = "circle", filled =
  FALSE, size = 0.09, color = "black"), Projected = list(name = "", what =
  "points", symbol = "plus", filled = FALSE, size = 0.09, color = "black"), ...)

## S3 method for class 'qw'
qqPlot(x, y, alpha = 0.4, Plot = list(name = "", what =
  "points", type = "solid", width = "standard", symbol = "circle", filled =
  TRUE, size = 0.09, color = "black"), LineRef = list(name = "", what =
  "lines", color = "black"), Line1.1 = list(name = "Line of equality", what =
  "lines", color = "gray"), yaxis.log = FALSE, yaxis.range = c(NA, NA),
  xaxis.log = FALSE, xaxis.range = c(NA, NA), ylabels = 7, xlabels = 7,
  xtitle, ytitle, caption = "", margin = c(NA, NA, NA, NA),
  Censored = list(name = "", what = "points", symbol = "circle", filled =
  FALSE, size = 0.09, color = "black"), Projected = list(name = "", what =
  "points", symbol = "plus", filled = FALSE, size = 0.09, color = "black"), ...)

Arguments

x

the x-axis data, or data to plot if y is missing. Must be of class "lcens," "mcens," or "qw." Missing values are permitted and removed bedfore plotting.

y

the y-axis data. Missing values are permitted and removed bedfore plotting. If missing, then produce a quantile-normal plot from the data in x.

alpha

the alpha value of the function for computing plotting positions.

Plot

control parameters of the uncensored data plot.

LineRef

control parameters of the reference line (best fit between x and y. See Details.

Line1.1

control parameters for the 1:1 line. Drawn only for q-q plot. See Details.

yaxis.log

log-transform the y axis?

yaxis.range

set the range of the y axis.

xaxis.log

log-transform the x axis?

xaxis.range

set the range of the x axis.

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.

ytitle

the y-axis title.

caption

the figure caption.

margin

the parameters of the margin of the plot area.

Censored

control parameters of the censored values q-normal plot.

Projected

control parameters of the projected (filled in) left-censored data q-normal plot.

...

any additional arguments required for specific methods.

Details

The argument what for either LineRef or Line1.1 may be set to "none" to suppress drawing of either line.

Value

Information about the graph.

See Also

probPlot.lcens

Examples

## Not run: 
set.seed(1932)
Xu <- rlnorm(32)
setPage("sq") # required page set up
qqPlot(as.lcens(Xu, 1.0), yaxis.log=TRUE)

## End(Not run)


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