---
title: "Pareto Plots for Nominal Distributions"
output: rmarkdown::html_vignette
vignette: >
  %\VignetteIndexEntry{Pareto Plots for Nominal Distributions}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
```

```{r setup}
library(nomiShape)
```

## Pareto Plot Example

The below example demonstrates how to use the `pareto_plot()` function from the `nomiShape` package to create a Pareto chart for a nominal variable "species" in the `starwars` dataset. Pareto charts help visualize the frequency distribution of categories along with their cumulative percentages.

```{r}
pareto(starwars, "species")
```

Another example using the `mpg` dataset to visualize the distribution of the "manufacturer" variable.

```{r}
pareto(mpg, "manufacturer", show_table = FALSE)
```

