% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggInterval_indexImage.R
\name{ggInterval_indexImage}
\alias{ggInterval_indexImage}
\title{Index image plot for interval-valued data}
\usage{
ggInterval_indexImage(data = NULL, mapping = aes(NULL),
column_condition = TRUE, full_strip = FALSE, plotAll = FALSE)
}
\arguments{
\item{data}{A ggInterval object. It can also be either RSDA object or
classical data frame,which will be automatically convert to ggInterval
data.}

\item{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.}

\item{column_condition}{Logical. If \code{TRUE}, the color scale is
applied separately within each variable (column condition). If
\code{FALSE}, one common color scale is applied to the whole matrix
(matrix condition).}

\item{full_strip}{Logical. If \code{TRUE}, each strip spans the full
plotting width. If \code{FALSE}, strip widths reflect the interval ranges.}

\item{plotAll}{Logical. If \code{TRUE}, produce a multivariate image plot
for all continuous interval-valued variables. The default is \code{FALSE}.}
}
\value{
Return a ggplot2 object.
}
\description{
Visualize interval-valued observations with color strips.
For a single variable, the display acts as a color-based analogue of an
index plot. When \code{plotAll = TRUE}, the function produces a
multivariate image plot across all continuous interval-valued variables.
}
\examples{
mydata <- ggInterval::facedata
p <- ggInterval_indexImage(mydata, aes(x = AD),
  full_strip = TRUE, column_condition = TRUE)
# Recommend adding coord_flip() to make the single-variable display clearer.
p + coord_flip()
ggInterval_indexImage(
  mydata,
  plotAll = TRUE,
  full_strip = TRUE,
  column_condition = FALSE
) +
  scale_colour_distiller(palette = "Blues", direction = 1)
ggInterval_indexImage(mydata, plotAll = TRUE, full_strip = FALSE)

}
