plot_bar: plot bar graph

View source: R/graphics.R

plot_barR Documentation

plot bar graph

Description

plot bar graph

Usage

plot_bar(data, label_x = "", label_y = "", colors = NULL, alpha = 1)

Arguments

data

data.frame contain x, value, and variable

label_x

x-axis label

label_y

y-axis label

colors

color vector

alpha

level of transparency

Value

ggplot graphic

Examples

#summarizing iris dataset
data <- iris |> dplyr::group_by(Species) |>
 dplyr::summarize(Sepal.Length=mean(Sepal.Length))
head(data)

#ploting data
grf <- plot_bar(data, colors="blue")
plot(grf)

daltoolbox documentation built on May 29, 2024, 1:57 a.m.