metabaRfactory / metabaR

metabaR is an R package to curate and visualise DNA metabarcoding data after basic bioinformatics analyses.
http://metabaRfactory.github.io/metabaR
13 stars 3 forks source link

Customising the text on ggtaxplot #40

Open frankie-simo opened 3 years ago

frankie-simo commented 3 years ago

I am have created a taxonomic table using MetabaR and have been using theme() to edit aspects of this. However, when the figure is initially produced it has names that are angled, difficult to read, overlap, and run out of the boundary.

I know that theme () works in layers and I have tried using theme(text= element_blank()) to get rid of these names so then I can then customise them with more options but this just clears all text around my legends and not the taxa names.

what packages could tidy these as I know that theme() is for manipulating non-data components

alexyr23 commented 2 years ago

the argument theme will not be working, because the text is plotted with geom_text. The solution I found to customize the size of ggtaxplot labels is to create a new function based on the original one. In the code you add an argument instead of .data$motus*100 and it will be fine:)