powered by
This function creates frequency bar charts for each discrete feature.
plot_bar(data, na.rm = TRUE, maxcat = 50, order_bar = TRUE, title = NULL)
input data to be plotted, in either data.frame or data.table format.
logical, indicating if missing values should be removed for each feature. The default is TRUE.
TRUE
maximum categories allowed for each feature. The default is 50. More information in 'Details' section.
logical, indicating if bars should be ordered.
plot title
If a discrete feature contains more categories than maxcat specifies, it will not be passed to the plotting function.
maxcat
# NOT RUN { # load diamonds dataset from ggplot2 data("diamonds", package = "ggplot2") # plot bar charts for diamonds dataset plot_bar(diamonds) plot_bar(diamonds, maxcat = 5) # }
Run the code above in your browser using DataLab