hist_boxplot {packHV} | R Documentation |
Plot a histogram with a boxplot below
Description
Plots a histogram with a boxplot below
Usage
hist_boxplot(
x,
freq = TRUE,
density = FALSE,
main = NULL,
xlab = NULL,
ymax = NULL,
col.hist = "lightblue",
col.boxplot = "lightblue",
...
)
Arguments
x |
a numeric vector |
freq |
boolean, |
density |
boolean, |
main |
character string, main title of the histogram |
xlab |
character string, label of the x axis |
ymax |
numeric value, maximum of the y axis |
col.hist |
color of the histogram |
col.boxplot |
color of the boxplot |
... |
other arguments to be passed in |
Value
None
Author(s)
Hugo Varet
Examples
par(mfrow=c(1,2))
hist_boxplot(rnorm(100),col.hist="lightblue",col.boxplot="red",freq=TRUE)
hist_boxplot(rnorm(100),col.hist="lightblue",col.boxplot="red",freq=FALSE,density=TRUE)
[Package packHV version 2.4 Index]