MIDEbar: Mide Barplots

Description Usage Arguments Details Value Author(s)

View source: R/Barplot.R

Description

This function takes one observation and makes varplots for multiple variales, if allows comparison if a second observation is passed as shadowdata

Usage

1
2
MIDEbar(data, vars, varlabels, barcolor = MIDEpallete, shadowdata,
  horizontal = FALSE)

Arguments

data

a dataframe with only one row

vars

a character vector with the names of the columns to plot

varlabels

character vector with the names to be used in the plot

barcolor

list of colors to be used in the bars, defaults to MIDEpallete

shadowdata

a second observation to plot, this one has a low alpha, recomended for highest case

horizontal

Should the plot be horizontal?, defaults to FALSE

Details

This function takes a single observation in a dataframe, makes a barplot using as x values the variables gives in vars, and as y values the values in the variables themselves. If a second observation is given in shadowvar this one is shown with a low alpha to be used as comparison.

Value

a ggplot graph

Author(s)

Andr<c3><a9>s Mej<c3><ad>a


kuhsibiris/MIDEPlots documentation built on May 20, 2019, 7:06 p.m.