@@ -568,7 +568,7 @@ plot_ccdist <- function(object, celltype_sender, celltype_receiver, color = NULL
568
568
# ' @param top_lrpairs Number of top lrpairs for plotting. Default is \code{20}.
569
569
# ' @param color Color for the cells in heatmap.
570
570
# ' @param border_color color of cell borders on heatmap, use NA if no border should be drawn.
571
- # ' @param type Set 'sig' to plot significant LR pairs or set 'number' to plot the number of spatial LR interactions .
571
+ # ' @param type Set 'sig' to plot significant LRI pairs or set 'number' to plot the number of spatial LRI pairs .
572
572
# ' @param fontsize_number fontsize of the numbers displayed in cells.
573
573
# ' @param number_color color of the text.
574
574
# ' @param color_low For 'number' type, define the color for the lowest value.
@@ -645,7 +645,7 @@ plot_cci_lrpairs <- function(object, celltype_sender, celltype_receiver, top_lrp
645
645
plot_res [lrpair $ ligand [i ], lrpair $ receptor [i ]] <- " *"
646
646
}
647
647
pheatmap :: pheatmap(lrpair_mat , cluster_cols = F , cluster_rows = F , color = heat_col , border_color = border_color , legend = F , display_numbers = plot_res ,
648
- fontsize_number = fontsize_number , number_color = number_color , main = " Significantly enriched LRI" )
648
+ fontsize_number = fontsize_number , number_color = number_color , main = " Significantly enriched LRI pairs " )
649
649
} else {
650
650
if (is.null(color_low )) {
651
651
color_low <- " orange"
@@ -659,7 +659,7 @@ plot_cci_lrpairs <- function(object, celltype_sender, celltype_receiver, top_lrp
659
659
lrpair_mat <- lrpair_mat [, - 1 ]
660
660
heat_color <- grDevices :: colorRampPalette(c(color_low , color_high ))(max(as.matrix(lrpair_mat ))- 1 )
661
661
heat_color <- c(" white" , heat_color )
662
- pheatmap :: pheatmap(lrpair_mat , cluster_cols = F , cluster_rows = F , border_color = border_color , color = heat_color , main = " Number of spatial LRIs " )
662
+ pheatmap :: pheatmap(lrpair_mat , cluster_cols = F , cluster_rows = F , border_color = border_color , color = heat_color , main = " Number of spatial LRI pairs " )
663
663
}
664
664
}
665
665
0 commit comments