butterflyplot: Butterfly plot

Description Usage Arguments Examples

View source: R/butterflyplot.R

Description

Generates a butterfly or folded butterfly plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
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

1
2
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 June 18, 2020, 11:10 a.m.