make_ligand_receptor_lfc_spatial_plot: make_ligand_receptor_lfc_spatial_plot

View source: R/differential_nichenet_plotting.R

make_ligand_receptor_lfc_spatial_plotR Documentation

make_ligand_receptor_lfc_spatial_plot

Description

make_ligand_receptor_lfc_spatial_plot Plot the ligand logFC in senders plus the logFC of their receptors in the receivers. In addition, add the spatialDE logFC values of the ligands!

Usage

make_ligand_receptor_lfc_spatial_plot(receiver_oi, prioritized_tbl_oi, prioritization_tbl_ligand_receptor, ligand_spatial = TRUE, receptor_spatial = TRUE, plot_legend = TRUE, heights = NULL, widths = NULL)

Arguments

receiver_oi

Name of the receiver cell type of interest

prioritized_tbl_oi

Dataframe with the ligand-receptor interactions that should be visualized

prioritization_tbl_ligand_receptor

$prioritization_tbl_ligand_receptor slot of 'get_prioritization_tables'

ligand_spatial

TRUE if need to plot the ligand spatial DE info, FALSE if not.

receptor_spatial

TRUE if need to plot the receptor spatial DE info, FALSE if not.

plot_legend

TRUE (default): add legend to the plot. FALSE: do not add legend.

heights

automatic determination if default NULL. If not NULL: number given by the user to indicate the requested heights, which are the height proportions of the different row panels in the plot.

widths

automatic determination if default NULL. If not NULL: number given by the user to indicate the requested widths, which are the width proportions of the different columns (side-by-side heatmaps) in the plot.

Value

List containing the combined heatmap and the legend

Examples

## Not run: 
make_ligand_receptor_lfc_spatial_plot(receiver_oi, prioritized_tbl_oi, prioritization_tbl_ligand_receptor, ligand_spatial = TRUE, receptor_spatial = TRUE, plot_legend = TRUE, heights = NULL, widths = NULL)

## End(Not run)


saeyslab/nichenetr documentation built on April 27, 2024, 9:24 p.m.