Plot a piechart
plot_piechart.Rd
This function plots a piechart with ggplot.
Arguments
- df
DATAFRAME : a long dataframe containing information to plot (no default)
- logical_var
CHARACTER : a column of df containing logical value to only plot a subset of the dataframe. Only rows with TRUE will be kept (default to NULL, i.e., keep all rows)
- grouping_var
CHARACTER : a column of df to make a piechart with (default to NULL)
- colors
VECTOR : a vector of colors (default to NULL)
- display_legend
LOGICAL : whether to print the legend or not (default to FALSE)