lijingya / ELMER

Enhancer Linking by Methylation/Expression Relationship (ELMER) is package to identify tumor-specific changes in DNA methylation within distal enhancers, and link these enhancers to downstream target genes
6 stars 16 forks source link

heatmapPairs opt_fun(legend_title_gp = ... ADD = TRUE) #21

Open vimarin opened 4 years ago

vimarin commented 4 years ago

Hi Tiago, hi people,

I am trying to run the code for "Workshop for multi-omics analysis with ELMER" I am stacked in the heatmapPair step

Could you help me solving this step ? (I am sorry I am not used to code).

When running the heatmapPair chunk

heatmapPairs(data = mae, group.col = group.col, group1 = group1, group2 = group2, subset = TRUE, pairs = pair[1:100,], filename = NULL)

I got the message 👍

Error: No such option: 'legend_title_gp'. If you want to add this new option, please use your_opt_fun(legend_title_gp = ..., ADD = TRUE)

I created an optional function .. it is ok? and then how should I include it in the heatmapPair chunk ?

opt_fun = function(legend_title_gp = gpar(fontsize = 10, fontface = "bold"), legend_labels_gp = gpar(fontsize = 10), ADD = TRUE)

Thank a lot for your help Vimarin