
Last chance! 50% off unlimited learning
Sale ends in
This function uses a nice template for barplots.
This function uses a nice template for barplots.
gg_bars(
names,
n,
p = NA,
title = NA,
subtitle = NA,
axis = "Counter",
obs = TRUE,
limit = 15,
na.rm = FALSE
)gg_bars(
names,
n,
p = NA,
title = NA,
subtitle = NA,
axis = "Counter",
obs = TRUE,
limit = 15,
na.rm = FALSE
)
Character Vector. Bar names
Numeric Vectors. n for counter, p to force percentage.
Character. Texts for plot
Boolean. Show observations counter?
Integer. Limit n most frequent values only
Boolean. Remove empty and NAs?
ggplot2 object
ggplot2 object
Other Visualization:
distr()
,
freqs_df()
,
freqs_list()
,
freqs_plot()
,
freqs()
,
gg_pie()
,
noPlot()
,
plot_chord()
,
plot_survey()
,
plot_timeline()
,
theme_lares()
,
tree_var()
Other Visualization:
distr()
,
freqs_df()
,
freqs_list()
,
freqs_plot()
,
freqs()
,
gg_pie()
,
noPlot()
,
plot_chord()
,
plot_survey()
,
plot_timeline()
,
theme_lares()
,
tree_var()
# NOT RUN {
Sys.unsetenv("LARES_FONT") # Temporal
data(dft) # Titanic dataset
df <- freqs(dft, Pclass)
gg_bars(df$Pclass, n = df$n)
gg_bars(df$Pclass, n = df$n, p = df$p, axis = "Percentage of ...")
Sys.unsetenv("LARES_FONT") # Temporal
data(dft) # Titanic dataset
df <- freqs(dft, Pclass)
gg_bars(df$Pclass, n = df$n)
gg_bars(df$Pclass, n = df$n, p = df$p, axis = "Percentage of ...")
# }
Run the code above in your browser using DataLab