condcompPlot: Plots the data frame of comparison of data conditions

Description Usage Arguments Details Value Examples

Description

This function takes the output from condcomp and plots some of its attributes in a scatter plot.

Usage

1
condcompPlot(ccomp, col = ccomp$iqr, main = NULL, legend.title = "IQR")

Arguments

ccomp

A data frame output from condcomp.

col

Color parameter to be used. The default is to color according to the IQR column of ccomp.

main

Character vector (or expression) giving plot title.

legend.title

Character vector giving the legend title.

Details

The first condition ratio that appears in the data frame will be plotted in the y-axis (-log10 scale), whereas the Z-score will be plotted along the x-axis. Each group will be colored by their respective IQR value as shown in the legend.

Value

A ggplot2 object.

Examples

1
2
3
4
5
6
clustering <- iris$Species
dmatrix <- as.matrix(dist(iris[-length(iris)]))
# Suppose the conditions are 'young' and 'old' fish
cond <- sample(c("young", "old"), nrow(iris), replace=TRUE)
comp <- condcomp(clustering, cond, dmatrix=dmatrix, n=10)
condcompPlot(comp)

condcomp documentation built on May 6, 2019, 3:53 a.m.