Description Usage Arguments Details Value Author(s)

View source: R/compareAnalysis.R

This function computes the correlation between two components.

1 2 | ```
correl2Comp(comp1, comp2, type.corr = "pearson", plot = FALSE,
cutoff_zval = 0, test = FALSE, alreadyTreat = FALSE)
``` |

`comp1` |
The first component, a vector of projections or contributions indexed by labels |

`comp2` |
The second component, a vector of projections or contributions indexed by labels |

`type.corr` |
Type of correlation to be computed, either |

`plot` |
if |

`cutoff_zval` |
either NULL or 0 (default) if all genes are used to compute the correlation between the components, or a threshold to compute the correlation on the genes that have at least a scaled projection higher than cutoff_zval. |

`test` |
if TRUE the correlation test p-value is returned instead of the correlation value |

`alreadyTreat` |
if TRUE comp1 and comp2 are considered as being already treated (i.e scaled and restricted to common elements) |

Before computing the correlation, the components are scaled and restricted to common labels.
When `cutoff_zval`

is different from `0`

, the elements that are included in the circle of center 0 and radius `cutoff_zval`

are not taken into account during the computation of the correlation.

This function returns either the correlation value or the p-value of the correlation test.

Anne Biton

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.