View source: R/butterflyplot.R
butterflyplot | R Documentation |
Generates a butterfly or folded butterfly plot
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
)
x |
A numeric vector |
y |
A numeric/factor/character vector with 2 levels. |
col1 , col2 , border1 , border2 |
Character string color. |
breaks |
Number of breaks. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.