ggbarplot: Plot

View source: R/ggplots.R.R

ggbarplotR Documentation

Plot

Description

Plot

Usage

ggbarplot(
  data,
  col,
  orientation = "h",
  fill = NULL,
  title = NULL,
  position = "stack",
  ...
)

Arguments

data

a dataset to plot (dataframe)

col

column of dataframe to plot (don't quote)

orientation

orientation of barplot ("h" / "horizontal" / "v" / "vertical")

fill

column of dataframe to color based on (don't quote)

title

title of graph (string)

position

see ?ggplot2::geom_bar for details (Usually one of: "stack", "dodge", "fill")

...

set any other barplot property. See ?ggplot2::geom_bar for details. (e.g. alpha = 0.4)

Value

ggplot

Examples

ggbarplot(iris, Species, fill = Species, orientation = "horizontal", title = "My Freq Graph")

selkamand/utilitybeltgg documentation built on July 14, 2022, 2:32 p.m.