BGmix (version 1.32.0)

plotCompare: 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).

Examples

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

Run the code above in your browser using DataCamp Workspace