powered by
This function generates a histogram from a specified data frame using ggplot2.
plot_hist(data, label_x = "", label_y = "", color = "white", alpha = 0.25)
returns a ggplot graphic
data.frame contain x, value, and variable
x-axis label
y-axis label
color vector
transparency level
grf <- plot_hist(iris |> dplyr::select(Sepal.Width), color=c("blue")) plot(grf)
Run the code above in your browser using DataLab