rank_rank_plot {topconfects}R Documentation

A plot to compare two rankings

Description

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

Usage

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


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


[Package topconfects version 1.6.0 Index]