bar_graph: A function that plots a a bar graph with different variations

Description Usage Arguments

View source: R/bar_graph.R

Description

A function that plots a a bar graph with different variations

Usage

1
bar_graph(df, xvar, yvar, ascending = FALSE, ordered = FALSE, errorbar = FALSE, xlabel = "", ylabel = "", title = "", flip = FALSE, angle = 0, sizee = 12, sizelabel = 4, dcm = 0, ylimm = c(0, NA))

Arguments

df

A data frame with x variable, y variable

xvar

the variable that will form the x-axis

yvar

the variable that will form the y-axis

ascending

Boolean deciding the sorting order of the bars.Default:FALSE

ordered

Boolean deciding whether bars should be sorted or not sorted.Default:FALSE

errorbar

Boolean deciding whether to plot error bars of not. Default:FALSE

xlabel

the x label of the plot

ylabel

the y label of the plot

title

the title of the plot

flip

Boolean deciding whether to flip the bar plot or not. Default:FALSE

angle

the angle position of the lables

sizee

the size of title

sizelabel

the size of labels

dcm

the number of decimal numbers

ylimm

Set the ylim scale


stevenndungu/quickr documentation built on May 6, 2020, 7:49 p.m.