View source: R/differential_nichenet_plotting.R
make_ligand_receptor_lfc_spatial_plot | R Documentation |
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!
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)
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. |
List containing the combined heatmap and the legend
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.