Description Usage Arguments Value Author(s)
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.
1 2 3 4 5 |
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 |
xlim |
set the x-axis limits. leave as |
ylim |
set the y-axis limits. leave as |
... |
arguments passed to |
none.
Mark Cowley, 14 Nov 2006
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.