Description Usage Arguments Value Author(s) Examples
View source: R/estimatePercentageErrors.R
Functions to estimate percentage errors
1 2 3 4 |
x: |
A data frame containing colums category, cases and total as input. |
conf.level: |
Confidence level for the returned confidence interval, default 0.95. |
coord.flip: |
Cartesian coordinates with x and y flipped, default FALSE. |
digits: |
Integer indicating the number of decimal places to be used, default 5. |
sort: |
A logical value. If TRUE, the result are sorted by percentage . |
plotly: |
A logical value. If TRUE, the grpaph are plotted as plotly object. |
title: |
A title for the graph, default "Bar Plot of Percentage with errors". |
xlab: |
A title for the x axis, default "Category". |
ylab: |
A title for the y axis, default "Percentage". |
estimatePercentageErrors
returns a data frame as the input with columns percentage,
lo and hi and a bar plot of percentage with errors.
Andrey Davydenko, Maxim and Sai Van Cuong from Volgograd State Technical University
1 2 3 4 | estimatePercentageErrors(data20)
estimatePercentageErrors(data20, conf.level = 0.8)
estimatePercentageErrors(mydata, conf.level = 0.8, coord.flip = TRUE)
estimatePercentageErrors(mydata, conf.level = 0.8, coord.flip = TRUE, digits = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.