Skip to contents

It returns a bar or a histogram of the variable

Usage

plot_variable(df, variable, ..., type = "numeric")

Arguments

df

a data.frame

variable

the variable to use.

...

params passed to geom_*

type

numeric (default) or nominal.

Examples

data.frame(a = c("x", "y", "y"), b = c("z", "z", "x")) |> plot_variable(a)