CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

Title vs. legend name

Open AlbertoFabbri93 opened this issue 8 months ago • 0 comments

Hi, thank you for this nice package!

I generated a heatmap using the following code:

netVisual_heatmap(
  object = cellchat,
  measure = "count",
  # Darker color for interactions close to 0
  color.heatmap = c("#f0f8ff", "#2166ac"),
  title.name = glue("Number of interactions\n{cellchat_interactions_name}\n{cellchat_datatype_name}"),
  font.size = 7,
  color.use = palette_cellchat)

and this is the plot I got:

Image

As you can see the title.name parameter changes both the title of the plot and the name of the legend. Is there a way to set them separately? Thank you!

AlbertoFabbri93 avatar May 07 '25 08:05 AlbertoFabbri93