grouped_barchart_impact: Create a grouped barchart

Description Usage Arguments Value

View source: R/barchart_functions.R

Description

Create a grouped barchart

Usage

1
2
3
grouped_barchart_impact(.data, x, subset.x, y, infimum_error = NULL,
  supremum_error = NULL, sens.barchart = "vertical", percent = FALSE,
  scale.percent = 1)

Arguments

infimum_error

(optional): column name (without quotes) of .data containing value of the lower limit for the error bars

supremum_error

(optional): column name (without quotes) of .data containing value of the upper limit for the error bars

sens.barchart

(optional): if sens.barchart = "vertical" (default) boxplots are build with vertical cartesian coordinates. If sens.barchart="horizontal" flip cartesian coordinates so that vertical becomes horizontal

percent

(optional): logical parameter. Default value is FALSE. If TRUE, y values are written as percentages

scale.percent

(optional): Default value 1. A scaling factor: y,infimum_error and supremum_error will be multiply by scale.

.data:

data that contains the result for the barchart (percents or averages)

x:

column name (without quotes) of .data that contains the different values of the categorical data

subset.x:

element containing all the subset categories of x

y:

column name (without quotes) .data containing for x element the y coordinates

result_percent:

data.frame of two column where the first is the values of the independent var and the second column is the average associated to the indepedent variable value

Value

A ggplot object containing grouped barchart


sharonorengo/visualisationIMPACT documentation built on Aug. 12, 2019, 3:34 p.m.