capacityPlot.homoVAR.simple.fn: Display assay capacity briefly

Description Usage Arguments Value Author(s) Examples

View source: R/capacityPlot.homoVAR.simple.fn.R

Description

a function to plot density of measured value to demonstrate FoldHit under homoscedasticity for two groups excluding NA values

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
capacityPlot.homoVAR.simple.fn(
  FoldHit,
  color = c("green", "black", "red", "purple"),
  xRange = NULL,
  yRange = NULL,
  normCut = 3,
  length.out = 1000,
  round.point = 2,
  lwd = 3,
  mar = c(8.1, 4.1, 1.1, 1.1),
  lineScale = c(0.9, 3.7, 6.4),
  lineXaxis = c(0, 2.8, 5.5)
)

Arguments

FoldHit

a vector of FoldHit values for controls, the first element must be 0, the second element must be 1 or -1, the remainings are for positive controls

color

colors mark negative reference, MDhit and positive controls

xRange

range for x-axis

yRange

range for y-axis

normCut

SSMD value for defining a maximally detectable hit

length.out

number of points for showing density

round.point

number of round points for showing capacity values

lwd

width of density lines

mar

margin for the plot

lineScale

value of line in showing scale

lineXaxis:

value of line in showing labels in x-axis

Value

no return value

Author(s)

Xiaohua Douglas Zhang 05/2020

Examples

1
2
3
4
FoldHit = c(0, -1, -4.308057, -1.674495)
  par(mfrow=c(1,2))
  capacityPlot.homoVAR.simple.fn( FoldHit, color=c("green","black","red", "purple"))
  capacityPlot.homoVAR.simple.fn( -FoldHit, color=c("green","black","red", "purple"))

xhdouglas/HTScapacity documentation built on Dec. 10, 2020, 8:20 p.m.