plot_hist {daltoolbox} | R Documentation |
Plot histogram
Description
This function generates a histogram from a specified data frame using ggplot2.
Usage
plot_hist(data, label_x = "", label_y = "", color = "white", alpha = 0.25)
Arguments
data |
data.frame contain x, value, and variable |
label_x |
x-axis label |
label_y |
y-axis label |
color |
color vector |
alpha |
transparency level |
Value
returns a ggplot graphic
Examples
grf <- plot_hist(iris |> dplyr::select(Sepal.Width), color=c("blue"))
plot(grf)
[Package daltoolbox version 1.2.707 Index]