xyHist {datana} | R Documentation |
xyHist: Function for a scatter-plot with marginal histograms
Description
It creates a scattter-plot with histograms in both axys.
Usage
xyHist(
x = x,
y = y,
col.x = "blue",
col.y = "red",
xlab = NULL,
ylab = NULL,
x.lim = NULL,
y.lim = NULL
)
Arguments
x |
A numeric vector representing the X-axis variable |
y |
A numeric vector representing the Y-axis variable |
col.x |
(optional) A string specifying the color of the histogram of the X-variable. Default is "blue". |
col.y |
(optional) A string specifying the color of the histogram of the Y-variable. Default is "red". |
xlab |
(optional) A string specifying X-axis label. Default is "xvar". |
ylab |
(optional) A string specifying Y-axis label. Default is "yvar". |
x.lim |
(optional) A vector of two elements with the limits of the Y-axis. Default is the range of the X-variable. |
y.lim |
(optional) A vector of two elements with the limits of the Y-axis. Default is the range of the Y-variable. |
Value
Result of calculation
Examples
library(datana)
data(treevolroble)
df <- treevolroble
head(df)
xyHist(x=df$dbh,y=df$htot)
xyHist(x=df$dbh,y=df$htot, xlab="Variable X", ylab="Variable Y")
xyHist(x=df$dbh,y=df$htot, xlab="Variable X", ylab="Variable Y",
col.x = "gray",col.y="white")
[Package datana version 1.0.3 Index]