plots: Add rankings correlation plot

This commit is contained in:
Elias Projahn 2022-08-14 16:20:54 +02:00
parent 60dc05f6c6
commit 98ee52b122
3 changed files with 139 additions and 0 deletions

View file

@ -0,0 +1,32 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{plot_rankings_correlation}
\alias{plot_rankings_correlation}
\title{Plot a scatter plot to compare two rankings.}
\usage{
plot_rankings_correlation(
ranking_x,
ranking_y,
name_x,
name_y,
gene_sets = NULL,
use_ranks = TRUE
)
}
\arguments{
\item{ranking_x}{The ranking to be shown on the X axis.}
\item{ranking_y}{The ranking to be shown on the Y axis.}
\item{name_x}{Title of the X axis.}
\item{name_y}{Title of the Y axis.}
\item{gene_sets}{A named list of vectors of gene IDs to highlight. The names
will be used to distinguish the sets and in the legend.}
\item{use_ranks}{Show ranks instead of scores.}
}
\description{
This function requires the package \code{plotly}.
}