plot_hist | R Documentation |
This function generates a histogram from a specified data frame using ggplot2.
plot_hist(data, label_x = "", label_y = "", color = "white", alpha = 0.25)
data |
data.frame contain x, value, and variable |
label_x |
x-axis label |
label_y |
y-axis label |
color |
color vector |
alpha |
transparency level |
returns a ggplot graphic
grf <- plot_hist(iris |> dplyr::select(Sepal.Width), color=c("blue"))
plot(grf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.