Last data update: 2014.03.03

R: rnb.plot.betadistribution.probeCategories
rnb.plot.betadistribution.probeCategoriesR Documentation

rnb.plot.betadistribution.probeCategories

Description

plot beta value distrubions given probe categories

Usage

rnb.plot.betadistribution.probeCategories(beta.matrix, probe.cat,
  annotation = "Group", color.legend = NULL, log.str = NULL,
  points.per.group = rnb.getOption("distribution.subsample"))

Arguments

beta.matrix

Beta values in the form of a non-empty matrix of type double. Rows in this matrix must correspond to Infinium probes, and columns - to samples.

probe.cat

factor vector of length nrow(beta.matrix) corresponding to the probe categories.

annotation

Name of the annotation being visualized, in the form of a character vector of length 1.

color.legend

Color legend to use in the form of a character vector with element names. The values in this vector should encode colors. All values in probe.cat must be present in the names of this color legend. If this parameter is NULL, a default color legend is be constructed.

log.str

string specifying more details for the log file

points.per.group

the targeted number of points per group. Set this to a value < 1 to disable subsampling. More information in the Details section of rnb.step.betadistribution

Value

The plot as a ggplot2 object.

Author(s)

Fabian Mueller

See Also

rnb.plot.betadistribution.sampleGroups

Examples


library(RnBeads.hg19)
data(small.example.object)
logger.start(fname=NA)
meth.mat <- meth(rnb.set.example)
probe.types <- annotation(rnb.set.example)[, "Design"]
rnb.plot.betadistribution.probeCategories(meth.mat,probe.types,annotation="Infinium probe type")

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(RnBeads)
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, cbind, colnames, do.call, duplicated, eval, evalq,
    get, grep, grepl, intersect, is.unsorted, lapply, lengths, mapply,
    match, mget, order, paste, pmax, pmax.int, pmin, pmin.int, rank,
    rbind, rownames, sapply, setdiff, sort, table, tapply, union,
    unique, unsplit

Loading required package: S4Vectors
Loading required package: stats4

Attaching package: 'S4Vectors'

The following objects are masked from 'package:base':

    colMeans, colSums, expand.grid, rowMeans, rowSums

Loading required package: GenomicRanges
Loading required package: IRanges
Loading required package: GenomeInfoDb
Loading required package: MASS
Loading required package: RColorBrewer
Loading required package: cluster
Loading required package: ff
Loading required package: bit
Attaching package bit
package:bit (c) 2008-2012 Jens Oehlschlaegel (GPL-2)
creators: bit bitwhich
coercion: as.logical as.integer as.bit as.bitwhich which
operator: ! & | xor != ==
querying: print length any all min max range sum summary
bit access: length<- [ [<- [[ [[<-
for more help type ?bit

Attaching package: 'bit'

The following object is masked from 'package:base':

    xor

Attaching package ff
- getOption("fftempdir")=="/tmp/RtmpxYHcak"

- getOption("ffextension")=="ff"

- getOption("ffdrop")==TRUE

- getOption("fffinonexit")==TRUE

- getOption("ffpagesize")==65536

- getOption("ffcaching")=="mmnoflush"  -- consider "ffeachflush" if your system stalls on large writes

- getOption("ffbatchbytes")==16777216 -- consider a different value for tuning your system

- getOption("ffmaxbytes")==536870912 -- consider a different value for tuning your system


Attaching package: 'ff'

The following objects are masked from 'package:bit':

    clone, clone.default, clone.list

The following objects are masked from 'package:utils':

    write.csv, write.csv2

The following objects are masked from 'package:base':

    is.factor, is.ordered

Loading required package: fields
Loading required package: spam
Loading required package: grid
Spam version 1.3-0 (2015-10-24) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction 
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.

Attaching package: 'spam'

The following object is masked from 'package:stats4':

    mle

The following objects are masked from 'package:base':

    backsolve, forwardsolve

Loading required package: maps

 # maps v3.1: updated 'world': all lakes moved to separate new #
 # 'lakes' database. Type '?world' or 'news(package="maps")'.  #



Attaching package: 'maps'

The following object is masked from 'package:cluster':

    votes.repub

Loading required package: ggplot2
Loading required package: gplots

Attaching package: 'gplots'

The following object is masked from 'package:IRanges':

    space

The following object is masked from 'package:S4Vectors':

    space

The following object is masked from 'package:stats':

    lowess

Loading required package: gridExtra

Attaching package: 'gridExtra'

The following object is masked from 'package:BiocGenerics':

    combine

Loading required package: limma

Attaching package: 'limma'

The following object is masked from 'package:BiocGenerics':

    plotMA

Loading required package: matrixStats
matrixStats v0.50.2 (2016-04-24) successfully loaded. See ?matrixStats for help.
Loading required package: illuminaio
Loading required package: methylumi
Loading required package: Biobase
Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.


Attaching package: 'Biobase'

The following objects are masked from 'package:matrixStats':

    anyMissing, rowMedians

Loading required package: scales
Loading required package: reshape2
Loading required package: FDb.InfiniumMethylation.hg19
Loading required package: GenomicFeatures
Loading required package: AnnotationDbi

Attaching package: 'AnnotationDbi'

The following object is masked from 'package:MASS':

    select

Loading required package: TxDb.Hsapiens.UCSC.hg19.knownGene
Loading required package: org.Hs.eg.db

Loading required package: minfi
Loading required package: lattice
Loading required package: SummarizedExperiment

Attaching package: 'SummarizedExperiment'

The following object is masked from 'package:matrixStats':

    rowRanges

Loading required package: Biostrings
Loading required package: XVector

Attaching package: 'Biostrings'

The following objects are masked from 'package:ff':

    mismatch, pattern

Loading required package: bumphunter
Loading required package: foreach
Loading required package: iterators
Loading required package: locfit
locfit 1.5-9.1 	 2013-03-22
Setting options('download.file.method.GEOquery'='auto')
Setting options('GEOquery.inmemory.gpl'=FALSE)
Loading required package: plyr

Attaching package: 'plyr'

The following object is masked from 'package:XVector':

    compact

The following object is masked from 'package:matrixStats':

    count

The following object is masked from 'package:maps':

    ozone

The following object is masked from 'package:IRanges':

    desc

The following object is masked from 'package:S4Vectors':

    rename

Warning message:
replacing previous import 'gridExtra::combine' by 'methylumi::combine' when loading 'RnBeads' 
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/RnBeads/rnb.plot.betadistribution.probeCategories.Rd_%03d_medium.png", width=480, height=480)
> ### Name: rnb.plot.betadistribution.probeCategories
> ### Title: rnb.plot.betadistribution.probeCategories
> ### Aliases: rnb.plot.betadistribution.probeCategories
> 
> ### ** Examples
> 
> ## No test: 
> library(RnBeads.hg19)
> data(small.example.object)
> logger.start(fname=NA)
> meth.mat <- meth(rnb.set.example)
> probe.types <- annotation(rnb.set.example)[, "Design"]
> rnb.plot.betadistribution.probeCategories(meth.mat,probe.types,annotation="Infinium probe type")
2016-07-06 05:00:29     0.9    INFO Density estimation ( Infinium probe type ): Groupwise retained observations after missing value removal: I:5964/5964; II:14868/14868
> ## End(No test)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>