create.violinplot: Create a violin plot.

Description Usage Arguments Author(s) References Examples

View source: R/create.violinplot.R

Description

Create a violin plot from a dataframe.

Usage

1
create.violinplot(data = NULL, x = NULL, y, xlab = NULL, ylab = NULL, theme = NULL, filename = NULL, resolution = 1600)

Arguments

data

dataframe to process

x

Data column representing the x-axis

y

Data column representing the y-axis

xlab

Label for the x-axis

ylab

Label for the y-axis

theme

A theme function for the violin plot (default: defeault.violinplot.theme)

filename

Filename to output plot to

resolution

resolution of the plot image

Author(s)

Richard de Borja <richard.deborja@gmail.com>

References

http://ggplot2.org

Examples

1
2
3
data(mtcars)
mtcars$cyl <- as.factor(mtcars$cyl)
create.violinplot(data=mtcars, x='cyl', y='wt', xlab='# Cylinders', ylab='Weight')

rdeborja/plotting.general documentation built on May 27, 2019, 3:05 a.m.