gwsca.vioplot: Create violin plots with

Description Usage Arguments Value Note Examples

View source: R/gwscaR_plot.R

Description

Create violin plots with

Usage

1
2
3
4
5
6
gwsca.vioplot(x, ..., range = 1.5, h = NULL, ylim = NULL,
  names = NULL, horizontal = FALSE, col = "magenta",
  border = "black", lty = 1, lwd = 1, rectCol = "black",
  colMed = "white", pchMed = 19, at, add = FALSE, wex = 1,
  drawRect = TRUE, plot.axes = TRUE, axis.box = FALSE,
  plot.ann = TRUE, axis.bty = "l")

Arguments

x

the data to plot

...

legend parameters

range

The range for plotting

h

The height of the density estimator (in sm.density), if ommitted h will be set to an optimum

ylim

The y-axis limits

names

Names to plot (default is NULL)

horizontal

Whether the plot should be horizontal (defaults to FALSE)

col

Color for violin plots

border

Border color

lty

Line type

lwd

line width

rectCol

rectangle color

colMed

median point color

pchMed

median point size

at

The location for things

add

Whether the plot gets added to others (defaults to FALSE)

wex

Size of something

drawRect

Whether to add rectangles to violin plots (defaults to TRUE)

plot.axes

A logical value that determines whether or not to add axes (defaults to TRUE)

axis.box

A logical value that determines whether the axes should be a box (defaults to FALSE)

plot.ann

A logical value that determines whether the annotations should be plotted (defaults to TRUE)

axis.bty

The axis box type (default is L)

Value

Optionally returns the summary statistics of the data.

Note

Modified from vioplot() in library(vioplot)

Examples

1
2
3
4
5
6
7
library(sm)
mu<-2
si<-0.6
bimodal<-c(rnorm(1000,-mu,si),rnorm(1000,mu,si))
uniform<-runif(2000,-4,4)
normal<-rnorm(2000,0,3)
gwsca.vioplot(bimodal,uniform,normal,col=c("red","blue","green"))

spflanagan/gwscaR documentation built on Nov. 14, 2019, 9:16 p.m.