suppa.event.pie: Count each event type and draw pie chart

View source: R/Suppa.R

suppa.event.pieR Documentation

Count each event type and draw pie chart

Description

Count each event type and draw pie chart

Usage

suppa.event.pie(
  data,
  color = "jco",
  colid = 2,
  alpha = 1,
  title = "",
  border = "white"
)

Arguments

data

A data.frame or list object.

color

ggsci color palette

colid

If provide data.frame, column id need to be set

alpha

Alpha value in plot

title

Pie title

border

Border color

Examples

suppa.event.pie(ioe.events.df$Type, title = "# of events")
or suppa.event.pie(ioe.events.df, col = 2, title = "# of events")

ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.