##Scatter-plot and marginal histograms
data(treevolroble)
df <- treevolroble
xyhist(x=df$dbh,y=df$toth, xlab="Diameter (cm)", ylab="Height (m)")
##Scatter-plot and box-plots
data(fishgrowth)
df <- fishgrowth
xyboxplot(x=df$length,y=df$scale)
Run the code above in your browser using DataLab