Closed dj10086 closed 4 years ago
For Windows, perhaps try \r\n
no, it also does not work
From where are you running R? I have not tested the tutorial in R Studio because I do not use R Studio.
I test all the code, now I revise the font in anno_mark, the font size becomes ok. but the line feed still can not be ok.
hmap <- Heatmap(heat,
# split the genes / rows according to the PAM clusters
split = pamClusters$clustering,
cluster_row_slices = FALSE,
**name = 'Gene Z-score',** # must delete the \n in windows
Strange. What about \r
?
Can you elaborate on how you are using R? R Studio? R Server?
R Studio and R in windows has beed tried \n and \r\n has bedd tried. does not work at all
Really not sure what is happening. You can use a shorter name like 'Z-score', or change the following:
name = 'Gene Z-score',
legend_direction = 'horizontal
draw(hmap + genelabels,
heatmap_legend_side = 'bottom',
annotation_legend_side = 'right',
row_sub_title_side = 'left')
Well, any luck?
No response
hi, I am trying to repeat the code you supplied, but found 2 errors in windows R. thanks in advance
1 'Gene\nZ-\nscore' will give errors in windows, not like linux, windows does not support \n, maybe it connected with file name 2 one line code repeat in the following `# row (gene) parameters cluster_rows = TRUE, show_row_dend = TRUE,
row_title = 'Statistically significant genes',
and I found the gene names font size is so big, I change the row_title_gp = gpar(fontsize = 1, fontface = 'bold'), but does not make sense, how should I revise it?
and after change Gene\nZ-\nscore to Gene_Z--score, it outsided the plot area,