View source: R/ggInterval_index.r
ggInterval_index | R Documentation |
Visualize the range of the variables of each observations by using a kind of margin bar that indicate the minimal and maximal of observations.
ggInterval_index(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 |
plot all variables |
Return a ggplot2 object.
#the observations show on the y-axis .values on x-axis ggInterval_index(iris,aes(x=iris$Sepal.Length)) #change above axis ggInterval_index(mtcars,aes(y=disp,col="red",fill="grey")) #symbolic data mydata <- ggESDA::facedata ggInterval_index(mydata,aes(x=3:13,y=AD))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.