pie_plot {AnalysisLin}R Documentation

Pie Plots for Categorical Variables

Description

This function generates pie charts for categorical variables in the input data frame using plotly. Pie plots offer a visual representation of the distribution of categorical variables, making it easy to understand the frequency of each category. They are particularly useful for exploring patterns, identifying dominant categories, and comparing the relative frequencies of different levels within each variable.

Usage

pie_plot(data, html = FALSE)

Arguments

data

The input data frame containing categorical variables.

html

Whether the output should be in HTML format,used when knitting into HTML. Default is FALSE.

Value

A list of pie charts.

Examples

data(iris)
pie_plot(iris)

[Package AnalysisLin version 0.1.2 Index]