plot_hist: Plot histogram

View source: R/graphics.R

plot_histR 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)

daltoolbox documentation built on Nov. 3, 2024, 9:06 a.m.