microbiomeMarker icon indicating copy to clipboard operation
microbiomeMarker copied to clipboard

plot_cladogram()

Open marwa38 opened this issue 2 years ago • 5 comments

good morning :) how to solve the issue of the overlapping of the labels in the cladogram? I can't find any option to change the place of the label on the cladogram itself to be on different levels let's say so they don't overlap. Changing the font of the label is not enough plot_cladogram(lefse, color = c("blue", "red"), clade_label_font_size = 3) image Thanks

marwa38 avatar Mar 16 '22 11:03 marwa38

I suggest having an option (parameter) in run_lefse function to control the labels (in form of letters) separately than the words by changing the available options in clade_label_font_size

so we can change the size of the for example p_Firmicutes without jeopardizing the size of the ae as a label letter (as shown in figure above) where we can make the word label small enough to not overlap (and where the audience can zoom in for better visualisation in case needed while keeping the letters clear to see) .. hope I clarified my point enough

marwa38 avatar Mar 17 '22 05:03 marwa38

Thanks for your interested in microbiomeMarker. Maybe clade_label_font_size should upport a vector to set the font size of clade label seperately, or if it is a constant all the clade lables will in the same font size.

yiluheihei avatar Mar 19 '22 15:03 yiluheihei

image 我设置only_marker=FALSE时,图形可以出来,但是好多空的,不好看,于是我设置了only_marker=TRUE,这时候就报错了,如下: image

可是我用其他的数据数据分组时这就是可以的,请问如何解决,谢谢! image

xzsun avatar Aug 31 '22 13:08 xzsun

Hi @marwa38, How did you color the nodes? Some labels are there in the Cladogram (like gammaproteobacteria). But in my case everything is outside the cladogram. Please take a look!

feces_only markers

I used these codes - lot_cladogram(mm_lefse, color = c(WT = blue, S8 = brown), only_marker = T, alpha = 0.6, clade_label_font_size = 3) + theme(plot.margin = margin(0, 0, 0, 0))

Can you share your run_lefse code with me?

SouravDutta79 avatar Feb 10 '23 09:02 SouravDutta79

here is my code plot_cladogram(lefse, color = c("blue", "red"), clade_label_font_size = 3) Not sure what argument you did that lead to your figure. Maybe try to remove some of the arguments and see what you will get?

marwa38 avatar Feb 10 '23 20:02 marwa38