threeway_barplot_percent: A function that plots a three way barplot with labels...

Description Usage Arguments

View source: R/barplot_three_way_percent.R

Description

A function that plots a three way barplot with labels (Percentages) see example

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
threeway_barplot_percent(
  df,
  x_variable,
  y_variable,
  groupby_variable,
  title,
  xlablabel = "",
  ylablabel = "Percent",
  scale_values = c(),
  sizee = 12,
  angle = 0,
  sizelabel = 3
)

Arguments

df

A data frame with x variable, y variable and the factor variable.

x_variable

the variable that will form the x-axis

y_variable

the variable that will form the y-axis

groupby_variable

the factor variable that holds the groupings

title

the title of the plot

xlablabel

the x label of the plot @param ylablabel the y label of the plot @param scale_values Specify the factor groups with the colours you would like them to take eg "MMale" = "#66AAD7" @param sizee the size of title @param angle the of lables @param sizelabel the size of labels


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