gg_pie: Density plot for discrete and continuous values

Description Usage Arguments Value See Also Examples

View source: R/other_plots.R View source: R/other_plots.R

Description

This function plots discrete and continuous values results

This function plots discrete and continuous values results

Usage

1
2
3

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

lares documentation built on June 9, 2021, 9:06 a.m.