plotCompare: Scatter plot with equal axes.

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
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

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

BGmix documentation built on Nov. 8, 2020, 4:54 p.m.