d1da987e |
\name{anno_boxplot}
\alias{anno_boxplot}
\title{
|
6f1307c6 |
Using boxplot as annotation
|
d1da987e |
}
\description{
|
6f1307c6 |
Using boxplot as annotation
|
d1da987e |
}
\usage{
|
aee203e0 |
anno_boxplot(x, which = c("column", "row"), border = TRUE,
|
289e2e95 |
gp = gpar(fill = "#CCCCCC"), ylim = NULL, outline = TRUE,
|
11a77c85 |
pch = 16, size = unit(2, "mm"), axis = FALSE, axis_side = NULL,
|
ba8a5070 |
axis_gp = gpar(fontsize = 8), axis_direction = c("normal", "reverse"))
}
|
d1da987e |
\arguments{
|
bbf90151 |
\item{x}{a matrix or a list. If \code{x} is a matrix and if \code{which} is \code{column}, statistics for boxplot is calculated by columns, if \code{which} is \code{row}, the calculation is by rows.}
|
d1da987e |
\item{which}{is the annotation a column annotation or a row annotation?}
|
aee203e0 |
\item{border}{whether show border of the annotation compoment}
|
d1da987e |
\item{gp}{graphic parameters}
|
dc0ec14d |
\item{ylim}{data ranges.}
|
289e2e95 |
\item{outline}{whether draw outliers}
|
d1da987e |
\item{pch}{point type}
\item{size}{point size}
|
11a77c85 |
\item{axis}{whether add axis}
|
bbf90151 |
\item{axis_side}{if it is placed as column annotation, value can only be "left" or "right". If it is placed as row annotation, value can only be "bottom" or "top".}
|
11a77c85 |
\item{axis_gp}{graphic parameters for axis}
|
5ab2cb81 |
\item{axis_direction}{if the annotation is row annotation, should the axis be from left to right (default) or follow the reversed direction?}
|
ba8a5070 |
|
d1da987e |
}
\value{
|
6f1307c6 |
A graphic function which can be set in \code{\link{HeatmapAnnotation}} constructor method.
|
d1da987e |
}
\author{
|
6f1307c6 |
Zuguang Gu <z.gu@dkfz.de>
|
d1da987e |
}
\examples{
mat = matrix(rnorm(32), nrow = 4)
f = anno_boxplot(mat)
grid.newpage(); f(1:8)
f = anno_boxplot(mat, which = "row")
grid.newpage(); f(1:4)
lt = lapply(1:4, function(i) rnorm(8))
f = anno_boxplot(lt)
|
f597719b |
grid.newpage(); f(1:4)
|
ba8a5070 |
|
f597719b |
}
|