Learn R Programming

metaplot (version 0.2.1)

scatter: Scatterplot

Description

Scatterplot.

Scatterplot for class 'data.frame'. Extra arguments passed to region.

Scatterplot for class 'folded'.

Usage

scatter(x, ...)

# S3 method for data.frame scatter(x, .y, .x, groups = NULL, ..., ylog = FALSE, xlog = FALSE, yref = NULL, xref = NULL, ysmooth = FALSE, xsmooth = FALSE, cols = 3, density = FALSE, iso = FALSE, main = FALSE, corr = FALSE, group_codes = NULL, crit = 1.3, na.rm = TRUE, fit = conf, conf = FALSE, loc = 0, msg = "metastats", panel = metapanel)

# S3 method for folded scatter(x, .y, .x, groups = NULL, ..., ylog = FALSE, xlog = FALSE, yref = NULL, xref = NULL, ysmooth = FALSE, xsmooth = FALSE, cols = 3, density = FALSE, iso = FALSE, main = FALSE, corr = FALSE, crit = 1.3, na.rm = TRUE, fit = conf, conf = FALSE, loc = 0, msg = "metastats", panel = metapanel)

Arguments

x

object

...

passed arguments

.y

y axis item

.x

x axis item

groups

optional grouping item

ylog

log transform y axis (guessed if missing)

xlog

log transform x axis (guessed if missing)

yref

reference line from y axis

xref

reference line from x axis

ysmooth

supply loess smooth of y on x

xsmooth

supply loess smmoth of x on y

cols

suggested columns for auto.key

density

plot point density instead of points (ignored if groups is supplied)

iso

use isometric axes with line of unity

main

logical: whether to construct a default title; or a substitute title or NULL

corr

append Pearson correlation coefficient to default title (only if main is TRUE)

group_codes

append these to group values for display purposes

crit

if ylog or xlog missing, log transform if mean/median ratio for non-missing values is greater than crit

na.rm

whether to remove data points with one or more missing coordinates

fit

draw a linear fit of y ~ x

conf

logical, or width for a confidence region around a linear fit; passed to region; TRUE defaults to 95 percent confidence interval

loc

where to print statistics on a panel

msg

a function to print text on a panel: called with x values, y values, and ….

panel

name or definition of panel function

Methods (by class)

  • data.frame: data.frame method

  • folded: folded method

See Also

metapanel

Other generic functions: axislabel, continuous, corsplom, dens, guide, label, metaplot, overlay

Other bivariate plots: boxplot, metaplot

Other bivariate plots: boxplot, metaplot