suma_plot: Quickly plot Suma data using ggplot2

Description Usage Arguments

View source: R/plot.R

Description

Quickly plot Suma data with a pre-defined bar chart

Usage

1
2
3
suma_plot(df, xVar, op = "max", groupBy = NULL, filterBy = NULL,
  facetBy = NULL, fillBy = NULL, yVar = "value", legend = TRUE,
  position = "stack")

Arguments

df

Data frame containing Suma Data

xVar

What variable you'd like to use for the X axis of your plot(s)

op

What operation you want to use to get the data

groupBy

Optional argument defining how to group data

filterBy

Optional argument defining how to filter data

facetBy

Optional argument to define faceting your plot

fillBy

Optional argument to define the fill of the bars

yVar

Optional argument to specify variable you'd like to use fo the Y axis of your plot(s), defaults to "value"

legend

Optional argument to decide whether to display legend (default TRUE)

position

Optional argument to define position of bars, takes standard ggplot2 geom_bar arguments


jladams/sumar documentation built on May 19, 2019, 12:45 p.m.