plot_bar_h: Simple horizontal barplot

View source: R/plot_bar_h.R

plot_bar_hR Documentation

Simple horizontal barplot

Description

Simple horizontal barplot

Usage

plot_bar_h(
  data,
  item,
  barcolor = "#1F407A",
  barwidth = 0.8,
  texthjust = 2,
  textsize = 8,
  min_textsize = 5
)

Arguments

data

a data.frame object

item

a survey item

barcolor

optional argument to set the color of the bar

barwidth

optional argument to define the width of the bar

texthjust

optional argument to adjust the text's horizontal alignment

textsize

optional argument to adjust the text's size

min_textsize

optional argument to set the minimum text size

Value

a horizontal barplot


bonschorno/sep documentation built on April 1, 2022, 11:37 a.m.