Learn R Programming

ggiraphExtra (version 0.1.0)

ggCatepillar: Make an interactive catepillar plot

Description

Make an interactive catepillar plot

Usage

ggCatepillar(data, mapping, errorbar = "se", interactive = FALSE,
  digits = 1, flip = FALSE)

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 cvalue. If TRUE, coord_flip() function is used to make a horizontal plot

Value

An interactive catepillar plot

Examples

Run this code
# NOT RUN {
require(moonBook)
require(ggiraph)
require(ggplot2)
ggCatepillar(acs,aes(Dx,age,color=HBP),interactive=TRUE)
ggCatepillar(acs,aes(c(Dx,sex),age,color=HBP),interactive=TRUE,flip=TRUE)
ggCatepillar(acs,aes(age,height,color=sex),errorbar=FALSE,interactive=TRUE)
# }

Run the code above in your browser using DataLab