powered by
Make an interactive bar plot with error bar
ggErrorBar( data, mapping, interactive = FALSE, digits = 1, mode = 2, errorbar = "se", use.label = TRUE, use.labels = TRUE )
A data.frame
Set of aesthetic mappings created by aes or aes_.
A logical value. If TRUE, an interactive plot will be returned
An integer indicating the number of decimal places
if 2, two-sided error bar will be displayed, if 1 one-sided errorbar will be displayed
which value is displayed with errorbar :"se" or "sd"
Logical. Whether or not use column label in case of labelled data
Logical. Whether or not use value labels in case of labelled data
An interactive catepillar plot
# NOT RUN { require(ggplot2) require(ggiraph) ggErrorBar(mpg,aes(x=drv,y=cty)) ggErrorBar(mpg,aes(x=drv,y=hwy,color=cyl),mode=1,interactive=TRUE,errorbar="sd") # }
Run the code above in your browser using DataLab