ggCatepillar {ggiraphExtra} | R Documentation |
Make an interactive catepillar plot
Description
Make an interactive catepillar plot
Usage
ggCatepillar(
data,
mapping,
errorbar = "se",
interactive = FALSE,
digits = 1,
flip = FALSE,
use.label = TRUE,
use.labels = TRUE
)
Arguments
data |
a data.frame |
mapping |
Set of aesthetic mappings created by aes or aes_. |
errorbar |
which value is displayed with errorbar :"se" or "sd" |
interactive |
A logical value. If TRUE, an interactive plot will be returned |
digits |
An integer indicating the number of decimal places |
flip |
Logical. If TRUE, coord_flip() function is used to make a horizontal plot |
use.label |
Logical. Whether or not use column label in case of labelled data |
use.labels |
Logical. Whether or not use value labels in case of labelled data |
Value
An interactive catepillar plot
Examples
require(moonBook)
require(ggiraph)
require(ggplot2)
ggCatepillar(acs,aes(Dx,age,color=HBP))
ggCatepillar(acs,aes(c(Dx,sex),age,color=HBP),interactive=TRUE,flip=TRUE,use.labels=FALSE)
ggCatepillar(acs,aes(age,height,color=sex),errorbar=FALSE,interactive=TRUE)
[Package ggiraphExtra version 0.3.0 Index]