rank_rank_plot: A plot to compare two rankings

Description Usage Arguments Value Examples

View source: R/topconfects.R

Description

This is useful, for example, when comparing different methods of ranking potentially interesting differentially expressed genes.

Usage

1
2
3
4
5
6
7
rank_rank_plot(
  vec1,
  vec2,
  label1 = "First ranking",
  label2 = "Second ranking",
  n = 40
)

Arguments

vec1

A vector of names.

vec2

Another vector of names.

label1

A label to go along with vec1.

label2

A label to go along with vec2.

n

Show at most the first n names in vec1 and vec2.

Value

A ggplot2 object. Working non-interactively, you must print() this for it to be displayed.

Examples

1
2
3
a <- sample(letters)
b <- sample(letters)
rank_rank_plot(a,b, n=20)

topconfects documentation built on Nov. 8, 2020, 6:25 p.m.