violin {charts} R Documentation

Violin plot

Description


A violin plot is a compact display of a continuous distribution. It is a blend of boxplot and density:
a violin plot is a mirrored density plot displayed in the same way as a boxplot.

Usage

violin(data,
    size = "3600,2400",
    margin = "padding:400px 150px 300px 300px;",
    bg = "white",
    colorSet = "TSF",
    ylab = "y axis",
    title = "Volin Plot",
    labelAngle = -45,
    showStats = TRUE);

Arguments

data

The data To be displayed In this layer. There are three options If NULL, the Default, the data Is inherited from the plot data As specified In the Call To ggplot(). A data.frame, Or other Object, will override the plot data. All objects will be fortified To produce a data frame. See fortify() For which variables will be created. A Function will be called With a Single argument, the plot data. The Return value must be a data.frame, And will be used As the layer data. A Function can be created from a formula (e.g. ~ head(.x, 10)). [as Array]

size

-

margin

-

bg$

-

colorSet$

-

ylab$

-

title$

-

labelAngle

[as double]

env

[as Environment]

Details

Computed variables + density density estimate + scaled density estimate, scaled To maximum Of 1 + count density * number of points - probably useless for violin plots + violinwidth density scaled For the violin plot, according To area, counts Or To a constant maximum width + n number of points + width width of violin bounding box

Authors

graphics

Value

this function returns data object of type any kind.

clr value class

Examples


[Package charts version 1.0.0.0 Index]