mlspToplineBar: Make a simple bar graph of a topline table

Description Usage Arguments Details Value Examples

View source: R/GraphFunctions.R

Description

mlspToplineBar creates a bar graph of a topline table

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
mlspToplineBar(
  tableinput,
  titlevar = NULL,
  title = NULL,
  subtitle = NULL,
  fillPalette = "guess",
  theme = "default",
  xlab = NULL,
  PlotMargins = c(0.25, 0, 3.5, 0.5),
  wraptitle = 90,
  xlabelAngle = NULL,
  xlabelWrap = 12,
  xlabelSize = 14
)

Arguments

tableinput

The source table created by make.topline()

titlevar

A quoted variable name. If supplied, the full text of this variable will be the title

title

A character string. If supplied it will be the graph's title.

subtitle

If supplied, it will be the graph's subtitle

fillPalette

defaults to "guess", in which case a "best-guess" palette is assigned. This argument also accepts the name of ColorBrewer palette or a character vector of color names.

theme

Optional. One of either "LubarSlides" or "MLSP". This sets the theme to theme_LubarSlides or theme_MLSP, respectively.

xlab

an optional x-axis name

PlotMargins

Only applicable when theme = "LubarSlides". It allows the user to manually change the plot.margin parameter.

wraptitle

= the length at which to wrap the character title string. By default it is 90 which matches the width of a LubarSlide.

xlabelAngle

optional, the angle of the x-axis labels

xlabelWrap

character length at which to wrap x-axis labels

xlabelSize

specification of x-label size, defaults to 13

Details

This function takes a topline table created with make.topline() and returns it as a bar chart.

Value

A dataframe.

Examples

1
make.topline(variable = g2, mulaw = orig, remove = c("refused"), format = "long")

jdjohn215/MLSPTools documentation built on Sept. 2, 2020, 1:16 a.m.