Learn R Programming

lares (version 4.7)

gg_bars: Quick Nice Bar Plot

Description

This function uses a nice template for barplots.

Usage

gg_bars(names, n, p = NA, title = NA, subtitle = NA,
  axis = "Counter", obs = TRUE, limit = 15, na.rm = FALSE)

Arguments

names

Character Vector. Bar names

n, p

Numeric Vectors. n for counter, p to force percentage.

title, subtitle, axis

Character. Texts for plot

obs

Boolean. Show observations counter?

limit

Integer. Limit n most frequent values only

na.rm

Boolean. Remove empty and NAs?