Description Usage Arguments Value
View source: R/barchart_functions.R
Create a barchart for average
1 2 3 | barchart_impact(.data, x, y, infimum_error = NULL,
supremum_error = NULL, sens.barchart = "vertical", percent = FALSE,
scale.percent = 1)
|
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 |
a ggplot object containing barchart
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.