Description Usage Arguments Value Author(s) Examples
Plots a scatter plot of two variables with equal scales for the axes.
1 | plotCompare(var1, var2, limi = 0, xlab = substitute(var1), ylab = substitute(var2), log = "", title = "", ...)
|
var1 |
data to plot (x co-ordinate) |
var2 |
data to plot (y co-ordinate) |
limi |
limits of axes. If not specified, axes limits are determined from input data. |
xlab |
x-axis label |
ylab |
y-axis label |
log |
specifies if axes are on the log scale (as argument to 'par') |
title |
title of plot |
... |
other parameters input to plot |
Outputs the limits used in the plot (the input 'limi' argument if specified).
Alex Lewin
1 2 3 | x <- runif(100)
y <- rbeta(100,0.5,0.5)
plotCompare(x,y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.