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