overview: Draw boxplot, histogram and hierarchical tree of gene...

Description Usage Arguments Details Author(s) See Also Examples

View source: R/overview.R

Description

Very simple wrapper function that draws a boxplot, histogram and hierarchical tree of expression data

Usage

1
2
overview(dataset, labels = NULL, title = "", classvec = NULL, 
  hc = TRUE, boxplot = TRUE, hist = TRUE, returnTree=FALSE)

Arguments

dataset

A matrix, data.frame, ExpressionSet or marrayRaw-class. If the input is gene expression data in a matrix or data.frame. The rows and columns are expected to contain the variables (genes) and cases (array samples) respectively.

labels

Vector, labels to be placed on samples in plots. Default is rownames(dataset).

title

Character, label to be placed on plots. Default is NULL.

classvec

A factor or vector which describes the classes in columns of the dataset. Default is NULL. If included columns (array samples) on the dendrogram will be coloured by class.

hc

Logical. Draw dendrogram of hierarchical cluster analysis of cases. Default is TRUE.

boxplot

Logical. Draw boxplot. Default is TRUE.

hist

Logical. Draw histogram. Default is TRUE.

returnTree

Logical. Return the hieracrhical cluster analysis results. Default is FALSE.

Details

The hierarchical plot is produced using average linkage cluster analysis with Pearson's correlation metric as described by Eisen et al.,1999.

Author(s)

Aedin Culhane

See Also

See also as boxplot, hclust, hist

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  data(khan)

  logkhan<-log2(khan$train)
  print(class(logkhan))
  overview(logkhan, title="Subset of Khan Train")
  
  overview(logkhan, classvec=khan$train.classes, 
  labels=khan$train.classes,title="Subset of Khan Train")
  
  overview(logkhan, classvec=khan$train.classes, 
  labels=khan$train.classes,title="Subset of Khan Train", boxplot=FALSE, 
  his=FALSE)

Example output

Loading required package: RColorBrewer
Loading required package: gplots

Attaching package:gplotsThe following object is masked frompackage:stats:

    lowess

Loading required package: scatterplot3d
Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package:BiocGenericsThe following objects are masked frompackage:parallel:

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

The following objects are masked frompackage:stats:

    IQR, mad, sd, var, xtabs

The following objects are masked frompackage:base:

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

Welcome to Bioconductor

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

Loading required package: SummarizedExperiment
Loading required package: MatrixGenerics
Loading required package: matrixStats

Attaching package:matrixStatsThe following objects are masked frompackage:Biobase:

    anyMissing, rowMedians


Attaching package:MatrixGenericsThe following objects are masked frompackage:matrixStats:

    colAlls, colAnyNAs, colAnys, colAvgsPerRowSet, colCollapse,
    colCounts, colCummaxs, colCummins, colCumprods, colCumsums,
    colDiffs, colIQRDiffs, colIQRs, colLogSumExps, colMadDiffs,
    colMads, colMaxs, colMeans2, colMedians, colMins, colOrderStats,
    colProds, colQuantiles, colRanges, colRanks, colSdDiffs, colSds,
    colSums2, colTabulates, colVarDiffs, colVars, colWeightedMads,
    colWeightedMeans, colWeightedMedians, colWeightedSds,
    colWeightedVars, rowAlls, rowAnyNAs, rowAnys, rowAvgsPerColSet,
    rowCollapse, rowCounts, rowCummaxs, rowCummins, rowCumprods,
    rowCumsums, rowDiffs, rowIQRDiffs, rowIQRs, rowLogSumExps,
    rowMadDiffs, rowMads, rowMaxs, rowMeans2, rowMedians, rowMins,
    rowOrderStats, rowProds, rowQuantiles, rowRanges, rowRanks,
    rowSdDiffs, rowSds, rowSums2, rowTabulates, rowVarDiffs, rowVars,
    rowWeightedMads, rowWeightedMeans, rowWeightedMedians,
    rowWeightedSds, rowWeightedVars

The following object is masked frompackage:Biobase:

    rowMedians

Loading required package: GenomicRanges
Loading required package: stats4
Loading required package: S4Vectors

Attaching package:S4VectorsThe following object is masked frompackage:gplots:

    space

The following object is masked frompackage:base:

    expand.grid

Loading required package: IRanges
Loading required package: GenomeInfoDb
[1] "data.frame"

made4 documentation built on Nov. 8, 2020, 6:49 p.m.