vioplotGP: Violin plots for Groups

Description Usage Arguments See Also Examples

View source: R/vioplotGP.R

Description

Produce a Violin plot according to groups taking into account weightings and compute comparison tests

Usage

1
2
3
4
5
6
7
8
vioplotGP(x, gp, weights = NULL, labels = NA, xlab = NA, xlim = NA,
  ylim = NA, at = NA, wex = 0.75, h = NA, nblim = 10,
  Test = NA, adj.Test = 0.01, line.Test = NA, side.Test = 3,
  Fname = NA, type.letters = "latin", pos.letters = 1,
  col.letters = 1, add = F, col = 1, pch = 19, lwd = 1,
  lty = 1, cex = 1, cex.points = 1, col.points = 1, bg = 1,
  las = 0, boxplot = TRUE, side = "above", fill = NA, pts = TRUE,
  boxplot.fill = "white", horizontal = TRUE)

Arguments

x

a numeric vector of data

gp

factors with the same length as x describing groups

weights

a numeric vector with the same length as x

labels

group names in the same order than gp levels

xlab

label for the x-axis

xlim,

ylim range of values used for x and y-axes

at

position of each group in the y-axis

wex

the maximum value for the density curve

h

the kernel density smoothing parameter

nblim

minimum length of x for computing the kernel density

Test

a character value for group comparison tests "tukey" or "wilcox"

adj.Test, side.Test, line.Test

position paramters for the test value and P.value

Fname

?

type.letters

if Test is done, "latin" or "greek" letters are used to show significant differences between groups

pos.letters, col.letters

position (1, 2, 3 or 4) and colors for letters

add

if TRUE adds the plot to the current plot window

col

?

pch

?

lwd

?

lty

?

cex

?

cex.points

?

col.points

?

bg

?

las

?

boxplot

logical value for adding a boxplot or not

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 distribution curve

boxplot.fill

the color of the boxplot

horizontal

logical value

See Also

For group comparison see vioplotGp

Examples

1
2
3
4
5
6
data("ChickWeight")
vioplotGP(x = chickwts$weight, gp = chickwts$feed, las = 2,
          horizontal = FALSE, side = "both", wex = .4, fill = "grey70",
          boxplot.fill = "grey30", xlab = "Chick weights (mg)",
          Test = "tukey", pos.letters = 3, col.letters = "white",
          col.points = "grey50")

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