Learn R Programming

lares (version 4.10.6)

gg_pie: Density plot for discrete and continuous values

Description

This function plots discrete and continuous values results

This function plots discrete and continuous values results

Usage

gg_pie(df, var, table = FALSE, ...)

gg_pie(df, var, table = FALSE, ...)

Arguments

df

Dataframe

var

Variable to group, count and plot

table

Boolean. Print results as table?

...

Further parameters passed to freqs()

Value

ggplot2 object

ggplot2 object

See Also

Other Visualization: distr(), freqs_df(), freqs_list(), freqs_plot(), freqs(), gg_bars(), noPlot(), plot_chord(), plot_survey(), plot_timeline(), theme_lares(), tree_var()

Other Visualization: distr(), freqs_df(), freqs_list(), freqs_plot(), freqs(), gg_bars(), noPlot(), plot_chord(), plot_survey(), plot_timeline(), theme_lares(), tree_var()

Examples

Run this code
# NOT RUN {
Sys.unsetenv("LARES_FONT") # Temporal
data(dft) # Titanic dataset
gg_pie(dft, Survived)
gg_pie(dft, Pclass, table = TRUE)
gg_pie(dft, SibSp, table = TRUE, abc = TRUE)
Sys.unsetenv("LARES_FONT") # Temporal
data(dft) # Titanic dataset
gg_pie(dft, Survived)
gg_pie(dft, Pclass, table = TRUE)
gg_pie(dft, SibSp, table = TRUE, abc = TRUE)
# }

Run the code above in your browser using DataLab