butterflyplot: Butterfly plot

View source: R/butterflyplot.R

butterflyplotR Documentation

Butterfly plot

Description

Generates a butterfly or folded butterfly plot

Usage

butterflyplot(
  x,
  y,
  col1 = "#FF000060",
  col2 = "#3200D360",
  border1 = "black",
  border2 = "black",
  breaks = 100
)

folded_butterflyplot(
  x,
  y,
  col1 = "#FF000060",
  col2 = "#3200D360",
  border1 = "black",
  border2 = "black",
  breaks = 100
)

Arguments

x

A numeric vector

y

A numeric/factor/character vector with 2 levels.

col1, col2, border1, border2

Character string color.

breaks

Number of breaks.

Examples

butterflyplot(iris$Sepal.Length[1:100], droplevels(iris$Species[1:100]), breaks = 30)
folded_butterflyplot(iris$Sepal.Length[1:100], droplevels(iris$Species[1:100]), breaks = 30)

thomasgstewart/tgsify documentation built on Oct. 26, 2024, 8:15 p.m.