plot.cor: Correlation xy-plot

Description Usage Arguments Value Author(s)

Description

Plot x vs y with a lowess line and a correlation label under main title, and histograms above and to the right of the plot.

Usage

1
2
3
4
5
  plot.cor(x, y, symmetrical = TRUE, axes = TRUE,
    lowess = TRUE, leastsquares = TRUE, unity = TRUE,
    hist = TRUE, labels = NULL, cor.label = TRUE,
    r2.label = TRUE, cor.method = "spearman",
    legend = "topleft", xlim = NULL, ylim = NULL, ...)

Arguments

x

the 2 data to correlate

y

the 2 data to correlate

symmetrical

logical: make the plot symmetrical? (TRUE)

axes

logical: add internal axes at x=0, y=0

lowess

logical: add a lowess line through your data (default settings)

leastsquares

logical: plot the straight line of least squares (see lm)

unity

logical: plot a line through 0 with a slope of 1

hist

logical: add histograms to the sides?

labels

logical: label the data points with names to the right of them? This will also resize the axes by 110% to let the right most points' names be seen.

cor.label

logical: add a correlation label?

r2.label

logical: add an r2 label?

cor.method

the method to use to assess correlation. one of “spearman” or “pearson”

legend

position of the legend. default=“topleft”, see legend

xlim

set the x-axis limits. leave as NULL to automatically determine.

ylim

set the y-axis limits. leave as NULL to automatically determine.

...

arguments passed to plot, or, if hist=TRUE xyplot.hist

Value

none.

Author(s)

Mark Cowley, 14 Nov 2006


drmjc/mjcgraphics documentation built on May 15, 2019, 2:40 p.m.