barplot_for_counts: Barplot for counts

View source: R/barplot_for_counts.R

barplot_for_countsR Documentation

Barplot for counts

Description

Barplot for counts

Usage

barplot_for_counts(data = NULL, x, y)

Arguments

data

a data object (a data frame or a data.table)

x

name of the variable that will be on the x axis of the barplot

y

name of the variable that will be on the y axis of the barplot

Examples


barplot_for_counts(x = 1:3, y = 7:9)
barplot_for_counts(data = data.frame(
cyl = names(table(mtcars$cyl)), count = as.vector(table(mtcars$cyl))),
x = "cyl", y = "count")


kim documentation built on Oct. 9, 2023, 5:08 p.m.