Description Usage Arguments Note Author(s) Examples
Produces a scatter plot for two variables, with histograms in the margins of the plot.
1 | scatterhist(x, y, xlab = "", ylab = "")
|
x |
Vector of values to be put on the x-axis. |
y |
Vector of values to be put on the y-axis. |
xlab |
String, label of x-axis. |
ylab |
String, label of y-axis. |
Source: Adapted from the function given at http://sas-and-r.blogspot.com/2011/06/example-841-scatterplot-with-marginal.html.
Theo Pepler
1 2 3 4 5 | data(iris)
scatterhist(x = iris$Petal.Length,
y = iris$Petal.Width,
xlab = 'Petal length (cm)',
ylab = 'Petal width (cm)')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.