Closed mvtejesvi closed 11 months ago
Hi. You can add more ggplot2 like grammars to the created plot to adjust something you need (https://chiliubio.github.io/microeco_tutorial/intro.html#plot). For example,
g1 <- t1$plot_bar(others_color = "grey70", facet = "Cancer_type", xtext_keep = FALSE, legend_text_italic = FALSE)
g1 + theme(legend.text = element_text (size = 20))
Best, Chi
Hi,
Thank you. It worked for the taxa, however, the size of the Phylum remained small. how about changing proportionately for the x and y axis as well? What is the command? I tried this and it does not work.
t1 <- t1$plot_bar(others_color = "grey70", facet = "Cancer_type", xtext_keep = FALSE, legend_text_italic = FALSE) t1 + theme(legend.text = element_text (size = 20) t1 + theme(axis.title.x = element_text(size = 15), axis.title.y = element_text(size = 15))
Thanks again.
Best wishes
Tej
Hi. Please see the help document of ggplot2 theme function, i.e. help(theme)
. axis.text
term may be what you need.
Hi,
I am using the bar plots for phyla using the commands below. How can I increase the font size of the legends and taxa names? what is the command to increase the font size? Font's seems to be too small when we make a panel diagram.
t1 <- trans_abund$new(dataset = dataset, taxrank = "Phylum", ntaxa = 10)
t1 object now include the transformed abundance data t1$abund_data and other elements for the following plotting
t1$plot_bar(others_color = "grey70", facet = "Cancer_type", xtext_keep = FALSE, legend_text_italic = FALSE)
Thank you!
Best wishes
Tejesvi