Learn R Programming

ggESDA (version 0.2.0)

ggInterval_boxplot: A interval Box plot

Description

Visualize the one continuous variable distribution by box represented by multiple rectangles.

Usage

ggInterval_boxplot(data = NULL,mapping = aes(NULL),plotAll=FALSE)

Value

Return a ggplot2 object.

Arguments

data

A ggESDA object. It can also be either RSDA object or classical data frame, which will be automatically convert to ggESDA data.

mapping

Set of aesthetic mappings created by aes() or aes_(). If specified and inherit. aes = TRUE (the default), it is combined with the default mapping at the top level of the plot. You must supply mapping if there is no plot mapping. It is the same as the mapping of ggplot2.

plotAll

booleans, if TRUE, plot all variable together

Examples

Run this code
p<-ggInterval_boxplot(iris,aes(iris$Petal.Length))
p
p+scale_fill_manual(values = c("red","yellow",
    "green","blue","black"),
    labels=c("0%","25%","50%","75%","100%"),
    name="quantile")

mydata<-ggESDA::facedata
ggInterval_boxplot(mydata,aes(AD,col="black",alpha=0.5))

myMtcars<-classic2sym(mtcars)
myMtcars<-myMtcars$intervalData
ggInterval_boxplot(myMtcars,aes(disp))

Run the code above in your browser using DataLab