-
Notifications
You must be signed in to change notification settings - Fork 231
/
Copy pathgrid.boxplot.Rd
36 lines (34 loc) · 941 Bytes
/
grid.boxplot.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
\name{grid.boxplot}
\alias{grid.boxplot}
\title{
Draw a Single Boxplot
}
\description{
Draw a Single Boxplot
}
\usage{
grid.boxplot(value, pos, outline = TRUE, box_width = 0.6,
pch = 1, size = unit(2, "mm"), gp = gpar(fill = "#CCCCCC"),
direction = c("vertical", "horizontal"))
}
\arguments{
\item{value}{A vector of numeric values.}
\item{pos}{Position of the boxplot.}
\item{outline}{Whether draw outlines?}
\item{box_width}{width of the box.}
\item{pch}{Point type.}
\item{size}{Point size.}
\item{gp}{Graphic parameters.}
\item{direction}{Whether the box is vertical or horizontal.}
}
\details{
All the values are measured with \code{native} coordinate.
}
\examples{
lt = list(rnorm(100), rnorm(100))
grid.newpage()
pushViewport(viewport(xscale = c(0.5, 2.5), yscale = range(lt)))
grid.boxplot(lt[[1]], pos = 1, gp = gpar(fill = "red"))
grid.boxplot(lt[[2]], pos = 2, gp = gpar(fill = "green"))
popViewport()
}