Learn R Programming

astrochron (version 0.4.3)

xplot: Generate Cross-plot with Density Estimates on Axes

Description

Generate a Cross-plot with Density Estimates on Axes. Custom axes titles optional.

Usage

xplot(x,y,xlab=NULL,ylab=NULL,main=NULL,fill=T)

Arguments

x
Variable 1
y
Variable 2
xlab
Label for the x-axis, in quotes
ylab
Label for the y-axis, in quotes
main
Label for the plot, in quotes
fill
Use gray fill for density plots? (T or F)

Examples

Run this code
# random numbers from a normal distribution
ex1<-rnorm(1000)
# random numbers from an exponential distribution
ex2<-rexp(1000)

xplot(ex1,ex2)

Run the code above in your browser using DataLab