Description Usage Arguments Value Examples
Scatterplots with Marginal Histograms
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 
| formula | a formula of the form y ~ x | 
| data | a data frame if y and x are not vectors in the global environment or subsets of a data frame | 
| xlab | the x axis label | 
| ylab | the y axis label | 
| col | color scheme. one of "blue" (the default), "red", "green", or "purple" | 
| x.breaks | breaks in x axis histogram. defaults to 15. | 
| y.breaks | breaks in y axis histogram. defaults to 15. | 
| smooth | should a smooth line be added. Defaults to FALSE. | 
| smoother | If FALSE the data are represented as points. If TRUE, a smooth density is used. The latter is useful for large sample sizes. | 
| regline | should a regression line be added? Defaults to TRUE, with both robust and ordinary least squares lines being plotted. | 
| font | Defaults to "serif" | 
| inset | the inset of the legend. Defaults to 0.05 | 
| legend.pos | the legend position. Defaults to "topright" | 
| box.lty | the linetype of the legend box outline | 
| box.cex | the size of the legend | 
a plot
| 1 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.