moreboxplot: Boxplot with scatter and density options

View source: R/mnems.r

moreboxplotR Documentation

Boxplot with scatter and density options

Description

Plots a boxplots plus x-axis randomised scatter and mirrored densities to visualise a distribution.

Usage

moreboxplot(
  x,
  box = TRUE,
  dens = TRUE,
  scatter = "no",
  polygon = TRUE,
  sd = 0.1,
  dcol = NULL,
  scol = NULL,
  dlty = 1,
  dlwd = 1,
  spch = 1,
  gcol = rgb(0, 0, 0, 0.5),
  glty = 2,
  glen = 2001,
  gmin = -100,
  gmax = 100,
  ...
)

Arguments

x

list, matrix or data.frame

box

if TRUE, draws boxes

dens

if TRUE, draws densities

scatter

if set to "random", draws x-axis randomised scatter points

polygon

if TRUE, filles the densities

sd

standard deviation of the scatter

dcol

color of the densities

scol

color of the scatter points

dlty

line type of the densities

dlwd

line width of the densities

spch

type of scatter points

gcol

color of the grid

glty

line type of the grid

glen

length of the grid

gmin

minimal point of the grid

gmax

maximal point of the grid

...

optional parameters for boxplot or plot

Value

transitively closed matrix or graphNEL

Author(s)

Martin Pirkl

Examples

D <- matrix(rnorm(100*3), 100, 3)
moreboxplot(D)

cbg-ethz/mnem documentation built on Nov. 7, 2024, 7:35 p.m.