vioplot: violin plots

Description Usage Arguments See Also Examples

View source: R/vioplot.R

Description

Produce a violin plot taking into account weightings

Usage

1
2
3
4
5
vioplot(x, weights = NULL, xlim = NA, ylim = NA, xlab = NA,
  label = "none", wex = 0.75, h = NA, add = F, nblim = 10,
  at = 1, pch = 19, lwd = 1, col = 1, col.points = 1, lty = 1,
  cex = 1, las = 0, boxplot = TRUE, bg = 1, side = "above",
  fill = NA, pts = TRUE, boxplot.fill = "white", horizontal = TRUE)

Arguments

x

a numeric vector of data

weights

a numeric vector with the same length as x

xlim

limit of x in plot

ylim

limit of y in plot

xlab

label for x axis

label

general plot label

wex

the maximum value for the density curve

h

the kernel density smoothing parameter

add

if TRUE adds the plot to the current plot window

nblim

minimum length of x for computing the kernel density

at

?

pch

points aspect

lwd

?

col

?

col.points

?

lty

?

cex

?

las

?

boxplot

logical value for adding a boxplot or not

bg

background color

side

a character value describing if the distribution should be drawn in the "above", "below", "right", "left" or "both" side(s)

fill

the color of the distribution area

pts

logical value for adding x data on the curve distribution

boxplot.fill

the color of the boxplot

horizontal

logical value

See Also

For group comparison see vioplotGp

Examples

1
2
3
data("ChickWeight")
vioplot(x = chickwts$weight, horizontal = FALSE, side="both", fill="grey70",
        boxplot.fill="grey30", label = "Weights", xlab = "none")

Rekyt/divr documentation built on April 1, 2020, 5:35 a.m.