estimatePercentageErrors: Estimate percentage errors

Description Usage Arguments Value Author(s) Examples

View source: R/estimatePercentageErrors.R

Description

Functions to estimate percentage errors

Usage

1
2
3
4
estimatePercentageErrors(x, conf.level = 0.95, coord.flip = FALSE,
  digits = 5, sort = FALSE, plotly = FALSE,
  title = "Bar Plot of Percentage with errors", xlab = "Category",
  ylab = "Percentage")

Arguments

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".

Value

estimatePercentageErrors returns a data frame as the input with columns percentage, lo and hi and a bar plot of percentage with errors.

Author(s)

Andrey Davydenko, Maxim and Sai Van Cuong from Volgograd State Technical University

Examples

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)

svcuonghvktqs/pcbars documentation built on May 26, 2019, 5:30 a.m.