powered by
create_pareto generates a Pareto chart using the group, frequency and cumulative frequency columns of a frequency distribution table.
create_pareto
create_pareto(df, title = "Pareto Chart", subtitle = "", caption = "", x_label = "Groups", y_label = "Frequency")
Data frame containing a frequency distribution table.
Character string; title to be displayed on Pareto chart. Default is "Pareto Chart".
Character string; subtitle to be displayed on chart. Default is "".
Character string; caption to be displayed on the chart. Default is "".
Character string; x axis label to be displayed on the chart. Default is "Groups".
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.
# NOT RUN { source <- c(1, 1, 1, 1, 2, 2, 2, 3, 3, 4) table <- create_table(source, dec_pos = 3) plot <- create_pareto(table) # }
Run the code above in your browser using DataLab