View source: R/ggInterval_indexImage.r
ggInterval_indexImage | R Documentation |
Visualize the range of the variables of each observations by using color image.The index image replace margin bar by color,thus it will be more visible for data.
ggInterval_indexImage(data = NULL,mapping = aes(NULL), column_condition=TRUE,full_strip=FALSE, 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. |
column_condition |
Boolean variables, which mean the color present by column condition (if TRUE) or matrix condition (if FALSE) |
full_strip |
Boolean variables, which mean the strip present in full figure-width (if TRUE) or only in its variable values(if FALSE). |
plotAll |
Boolean, which determine if the heatmap type for visualizing full variables is used. default FALSE. |
Return a ggplot2 object.
d<-data.frame(qq=rnorm(1000,0,1)) ggInterval_indexImage(d,aes(qq)) mydata<-ggESDA::facedata p<-ggInterval_indexImage(mydata,aes(AD),full_strip=TRUE,column_condition = TRUE) #Recommend to add coord_flip() to make the plot more visible p+coord_flip() myIris<-classic2sym(iris,groupby="Species") myIris<-myIris$intervalData p<-ggInterval_indexImage(myIris,aes(myIris$Petal.Length),full_strip=FALSE,column_condition=TRUE) p ggInterval_indexImage(mtcars,aes(disp))+labs(x="anything")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.