opt_violin: Violin plots of co-clustering validation results

View source: R/opt_violin.R

opt_violinR Documentation

Violin plots of co-clustering validation results

Description

Violin plots of co-clustering validation results

Usage

opt_violin(
  data,
  para.na,
  bar.width = 0.1,
  thr = NULL,
  title = NULL,
  title.size = 25,
  xlab = NULL,
  ylab = NULL,
  axis.title.size = 25,
  x.text.size = 25,
  y.text.size = 25,
  x.agl = 0,
  x.vjust = 0.6
)

Arguments

data

A data.frame of co-clustering validation results.

para.na

Targe parameters, which are one or multiple column names in data.

bar.width

Width of the bar.

thr

A y-axis threshold, which will be used to draw a horizontal line.

title, title.size

The plot title and its size.

xlab, ylab

The x and y axis label respectively.

axis.title.size

The size of x and y axis labels.

x.text.size, y.text.size

The size of x and y axis text.

x.agl, x.vjust

The angle and vertical position of x-axis text.

Value

An object of ggplot.

Author(s)

Jianhai Zhang jzhan067@ucr.edu
Dr. Thomas Girke thomas.girke@ucr.edu

References

H. Wickham. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2016.

Examples

set.seed(10)
data <- data.frame(auc=round(runif(30, 0, 1), 2), accuracy=round(runif(30, 0, 1), 2))
opt_violin(data=data, para.na=c('auc', 'accuracy'))

jianhaizhang/spatialHeatmap documentation built on Nov. 28, 2024, 4:44 p.m.