barchart_impact: Create a barchart for average

Description Usage Arguments Value

View source: R/barchart_functions.R

Description

Create a barchart for average

Usage

1
2
3
barchart_impact(.data, 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.

y:

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

Value

a ggplot object containing barchart


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