Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

grid.boxplot

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

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.

Details

All the values are measured with 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()

ComplexHeatmap

Make Complex Heatmaps

v2.6.2
MIT + file LICENSE
Authors
Zuguang Gu
Initial release
2020-11-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.