## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(nomiShape)

## ----ranked-dotplot-example---------------------------------------------------
# Example usage of ranked_dotplot
ranked_dotplot(categories, "animal")

## ----ranked-dotplot-connect---------------------------------------------------
# Example with connecting line
ranked_dotplot(categories, "animal", connect = TRUE)

## ----ranked-dotplot-percent---------------------------------------------------
# Example with percent scale
ranked_dotplot(mpg, "manufacturer", scale = "percent")

## -----------------------------------------------------------------------------
ranked_dotplot(mpg, "manufacturer", connect = TRUE, shade = TRUE, scale = "percent")

