Learn R Programming

ggiraphExtra (version 0.1.0)

ggErrorBar: Make an interactive bar plot with error bar

Description

Make an interactive bar plot with error bar

Usage

ggErrorBar(data, mapping, interactive = FALSE, digits = 1, mode = 2,
  errorbar = "se")

Arguments

data

A data.frame

mapping

Set of aesthetic mappings created by aes or aes_.

interactive

A logical value. If TRUE, an interactive plot will be returned

digits

An integer indicating the number of decimal places

mode

if 2, two-sided error bar will be displayed, if 1 one-sided errorbar will be displayed

errorbar

which value is displayed with errorbar :"se" or "sd"

Value

An interactive catepillar plot

Examples

Run this code
# NOT RUN {
require(ggplot2)
require(ggiraph)
ggErrorBar(mpg,aes(x=drv,y=cty),interactive=TRUE)
ggErrorBar(mpg,aes(x=drv,y=hwy,color=cyl),mode=1,interactive=TRUE,errorbar="sd")
# }

Run the code above in your browser using DataLab