Closed david-priest closed 1 year ago
I think this should be posted to the ComplexHeatmap
package, as it’s not related CATALYST
specifically, but how to post-modify an object of the Heatmap
class.
Ok yes. I'll ask there.
For a heatmap p
, the left annotation column names can be rotated using
p@left_annotation@anno_list[[1]]@name_param$rot = 45
p@left_annotation@anno_list[[2]]@name_param$rot = 45
I also tried p@column_names_param$rot = 45
, but it didn't seem to change their rotation.
Anyway, I hope this can help for general info about editing parameters of the heatmap outputted
Sorry for the somewhat specific question,
In
plotExprHeatmap()
, I have edited theHeatmap()
to rotate the marker names usingcolumn_names_rot = 45
. However as you can see from the attached screenshot, when plotting the left annotation, it's names are still vertical.Could you provide a way to update
left_anno
to rotate it's names too? I know how to make a new annotation with rotated namesHeatmapAnnotation(text = anno_text(cn, rot = 45, offset = unit(1, "npc"), just = "right"), annotation_height = max_text_width(cn)))
, but I don't know how to updateleft_anno
. Trying to editanno_factors()
oranno_clusters()
is going a bit deep for me. It would be good to know how to update an existing annotation object, e.g. to rotate the names.