leaf_plot | R Documentation |
This functions taked a data.frame
and returns a gtable
with three plots. The left-leafes, the axis names and the right-leafes.
leaf_plot( dta, label = "name", valueLeft = "var1", valueRight = "var2", titleLeft = NULL, titleRight = NULL, colorLeft = "#FF7F50", colorRight = "#20B2AA" )
dta |
|
label |
(default |
valueLeft |
(default |
valueRight |
(default |
titleLeft |
(default |
titleRight |
(default |
colorLeft |
(default |
colorRight |
(default |
A ggplo2 object.
data <- data.frame( labels = LETTERS[1:15], right = runif(n = 15) * 11, left = runif(n = 15) * 9 ) leaf_plot( data, "labels", "left", "right", "runif09", "runif11")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.