Learn R Programming

ggiraphExtra (version 0.1.0)

ggBoxplot: Draw boxplots of a data.frame

Description

Draw boxplots of a data.frame

Usage

ggBoxplot(data, mapping = NULL, rescale = FALSE, horizontal = FALSE,
  interactive = FALSE, ...)

Arguments

data

a data.frame

mapping

Set of aesthetic mappings created by aes or aes_.

rescale

if true, rescale the data.frame

horizontal

if true, horizontal boxplots will be made

interactive

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

...

other arguments passed on to geom_boxplot_interactive

Examples

Run this code
# NOT RUN {
require(ggplot2)
require(ggiraph)
require(reshape2)
ggBoxplot(mtcars,rescale=TRUE)
ggBoxplot(mtcars,aes(x=c(mpg,cyl,disp,hp,drat),color=am),rescale=TRUE)
ggBoxplot(mtcars,rescale=TRUE,interactive=TRUE)
ggBoxplot(mtcars,horizontal=TRUE,interactive=TRUE)
# }

Run the code above in your browser using DataLab