make_line_plot: Make a line plot

make_line_plotR Documentation

Make a line plot

Description

Make a line plot comparing the ranking of ligands based on their activities in the sender-agnostic and sender-focused approaches

Usage

make_line_plot(ligand_activities, potential_ligands, ranking_range = c(1, 20), agnostic_color = "tomato", focused_color = "black", tied_color = "gray75", inset_scale = 1)

Arguments

ligand_activities

Dataframe containing the ligand activities from the sender-agnostic approach

potential_ligands

Character vector containing the ligands that are expressed in the sender cell type (i.e. the ligands that are used in the sender-focused approach)

ranking_range

Numeric vector of length 2 indicating the range of the rankings to be displayed (default: c(1, 20))

agnostic_color

Color representing ligands only inthe sender-agnostic approach (default: "tomato")

focused_color

Color representing expressed ligands from the sender-focused approach (default: "black")

tied_color

Color to shade ligands that are tied in the same rank (default: "gray75")

inset_scale

Numeric value indicating the size of the points and text in the inset (default: 1)

Value

A ggplot object showing the distribution of sender-focused ligands, as well as a line plot inset comparing the rankings between the two approaches

Examples

## Not run: 
# Default
make_line_plot(ligand_activities, potential_ligands)

## End(Not run)

saeyslab/nichenetr documentation built on Sept. 7, 2024, 10:27 a.m.