Complexheatmap column annotations r

150 Views Asked by At

I would like to use anno_summary for the columns containing continuous variables (split by a categorical variable). By default, this function yields boxplots with means and SD.

I was wondering, is it possible to somehow get medians and IQR to appear? In the code below, there is anno_boxplot introduced, however the question remains the same.

Thanks, Ag

data1 <- as.data.frame(dati[, c(3:6)])   

column_ha <- HeatmapAnnotation(" " = anno_boxplot(data1,
                                                  height = unit(4, "cm"),
                                                  gp = gpar(fill = 1:10)))
        
Heatmap(scale(data1), name = "Legend", column_names_rot = 360, 
        cluster_columns = FALSE, column_title = c("Drug exposure"),
        width = unit(50, "mm"), split = data.frame(tscc = data$tscc),
        row_title = c(">60 days", "<60 days"),
        row_dend_width = unit(2, "cm"),
        bottom_annotation = column_ha)
0

There are 0 best solutions below