xplot {astrochron}R Documentation

Generate cross-plot with kernel density estimates on axes

Description

Generate a cross-plot with kernel density estimates on axes. If multiple data points are superposed in cross-plot, transparency of points reflects data density. 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

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

xplot(ex1,ex2)

[Package astrochron version 1.3 Index]