Description Usage Arguments Details Examples
Draw a Single Boxplot
1 2 3 |
value |
A vector of numeric values. |
pos |
Position of the boxplot. |
outline |
Whether draw outlines? |
box_width |
width of the box. |
pch |
Point type. |
size |
Point size. |
gp |
Graphic parameters. |
direction |
Whether the box is vertical or horizontal. |
All the values are measured with native
coordinate.
1 2 3 4 5 6 | 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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.