Learn R Programming

AnalysisLin (version 0.1.2)

pie_plot: 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)

Value

A list of pie charts.

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.

Examples

Run this code
data(iris)
pie_plot(iris)

Run the code above in your browser using DataLab