Description Usage Arguments Value Examples
View source: R/create_pareto.R
create_pareto
generates a Pareto chart using the group, frequency and
cumulative frequency columns of a frequency distribution table.
1 2 | create_pareto(df, title = "Pareto Chart", subtitle = "",
caption = "", x_label = "Groups", y_label = "Frequency")
|
df |
Data frame containing a frequency distribution table. |
title |
Character string; title to be displayed on Pareto chart. Default is "Pareto Chart". |
subtitle |
Character string; subtitle to be displayed on chart. Default is "". |
caption |
Character string; caption to be displayed on the chart. Default is "". |
x_label |
Character string; x axis label to be displayed on the chart. Default is "Groups". |
y_label |
Character string; y axis label to be displayed on the chart. Default is "Frequency". |
A plot containing a Pareto chart. If an error or warning occurs, a message will be printed to the console and the function will return NULL.
1 2 3 | source <- c(1, 1, 1, 1, 2, 2, 2, 3, 3, 4)
table <- create_table(source, dec_pos = 3)
plot <- create_pareto(table)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.