View source: R/ggInterval_boxplot.r
ggInterval_boxplot | R Documentation |
Visualize the one continuous variable distribution by box represented by multiple rectangles.
ggInterval_boxplot(data = NULL,mapping = aes(NULL),plotAll=FALSE)
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 |
Return a ggplot2 object.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.