LogFCLogFCPlot-class: The LogFCLogFCPlot class

Description Slot overview Constructor Supported methods Author(s) See Also Examples

Description

The LogFCLogFCPlot is a RowDataPlot subclass that is dedicated to creating a scatter plot of two log-fold changes. Each axis contains the log-fold change for a differential expression analysis and each point represents a feature. Users are expected to load relevant statistics into the rowData of a SummarizedExperiment.

Slot overview

The following slots control the thresholds used in the visualization:

The following slots control the choice of columns in the user interface:

In addition, this class inherits all slots from its parent RowDataPlot, RowDotPlot, DotPlot and Panel classes.

Constructor

LogFCLogFCPlot(...) creates an instance of a LogFCLogFCPlot class, where any slot and its value can be passed to ... as a named argument.

Initial values for PValuePattern and LogFCPattern are set to the outputs of getPValuePattern and getLogFCPattern, respectively. These parameters are considered to be global constants and cannot be changed inside the running iSEE application. Similarly, it is not possible for multiple VolcanoPlots in the same application to have different values for these slots; within the app, all values are set to those of the first encountered VolcanoPlot to ensure consistency.

Supported methods

In the following code snippets, x is an instance of a RowDataPlot class. Refer to the documentation for each method for more details on the remaining arguments.

For setting up data values:

For defining the interface:

For monitoring reactive expressions:

For creating the plot:

For documentation:

Author(s)

Aaron Lun

See Also

RowDataPlot, for the base class.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Making up some results:
se <- SummarizedExperiment(matrix(rnorm(10000), 1000, 10))
rownames(se) <- paste0("GENE_", seq_len(nrow(se)))
rowData(se)$PValue1 <- runif(nrow(se))
rowData(se)$LogFC1 <- rnorm(nrow(se))
rowData(se)$PValue2 <- runif(nrow(se))
rowData(se)$LogFC2 <- rnorm(nrow(se))

if (interactive()) {
    iSEE(se, initial=list(LogFCLogFCPlot(XAxisRowData="LogFC1", YAxis="LogFC2",
        XPValueField="PValue1", YPValueField="PValue2")))
}

iSEEu documentation built on Nov. 8, 2020, 8:12 p.m.