xplot | R Documentation |
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.
xplot(x,y,xlab=NULL,ylab=NULL,main=NULL,fill=T)
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) |
# random numbers from a normal distribution
ex1<-rnorm(1000)
# random numbers from an exponential distribution
ex2<-rexp(1000)
xplot(ex1,ex2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.