plotCompare {BGmix}R Documentation

Scatter plot with equal axes.

Description

Plots a scatter plot of two variables with equal scales for the axes.

Usage

plotCompare(var1, var2, limi = 0, xlab = substitute(var1), ylab = substitute(var2), log = "", title = "", ...)

Arguments

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

Value

Outputs the limits used in the plot (the input 'limi' argument if specified).

Author(s)

Alex Lewin

Examples

x <- runif(100)
y <- rbeta(100,0.5,0.5)
plotCompare(x,y)

[Package BGmix version 1.2.0 Index]