Last data update: 2014.03.03

R: Plots an object of class 'Threshold'.
plotThresholdR Documentation

Plots an object of class Threshold.

Description

plotThreshold plots the objects of class Threshold.

Usage

plotThreshold(x, main = "", legend, col = NULL, ...)

Arguments

x

An object of class Threshold or a list of objects of class Threshold.

main

A character string describing the title of the plot.

legend

A vector of character strings decribing the different Threshold objects in x; only applicable when x is a list.

col

A vector giving the colors, if NULL colors are generated automatically.

...

Further arguments passed to or from other methods.

Value

plotThreshold returns a plot.

Author(s)

Saskia Freytag

See Also

calculateThreshold

Examples

Y<-simulateGEdata(500, 500, 10, 2, 5, g=NULL, Sigma.eps=0.1,
250, 100, intercept=FALSE, check.input=FALSE)
anno<-as.matrix(sample(1:4, dim(Y$Y)[1], replace=TRUE))
colnames(anno)<-"Factor"
weights<-findWeights(Y$Y, anno, "Factor")
Thresh<-calculateThreshold(Y$Y, exclude=1:100, index.ref=1:10,
Weights=weights, anno=anno, Factor="Factor")
plotThreshold(Thresh)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(RUVcorr)
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/RUVcorr/plotThreshold.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plotThreshold
> ### Title: Plots an object of class 'Threshold'.
> ### Aliases: plotThreshold
> 
> ### ** Examples
> 
> Y<-simulateGEdata(500, 500, 10, 2, 5, g=NULL, Sigma.eps=0.1,
+ 250, 100, intercept=FALSE, check.input=FALSE)
> anno<-as.matrix(sample(1:4, dim(Y$Y)[1], replace=TRUE))
> colnames(anno)<-"Factor"
> weights<-findWeights(Y$Y, anno, "Factor")
> Thresh<-calculateThreshold(Y$Y, exclude=1:100, index.ref=1:10,
+ Weights=weights, anno=anno, Factor="Factor")
> plotThreshold(Thresh)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>