jtamames / SqueezeMeta

A complete pipeline for metagenomic analysis
GNU General Public License v3.0
365 stars 78 forks source link

Changing gradient color and font size in plotFunction SQMtools #607

Closed afsanarupa closed 1 year ago

afsanarupa commented 1 year ago

Hi, I want to change the gradient color and font size in plotFunction. Can you suggest me a way to change it in R studio. I tried edit(plotFunction) and trace(plotFunction) but they didn't seem to work

fpusan commented 1 year ago

As per the documentation plotFunction(SQM, gradient_col =c(color1, color2))

fpusan commented 1 year ago

plotFunction(SQM, gradient_col = c(color1, color2), base_size = 20)

afsanarupa commented 1 year ago

Hi, sorry for bothering again. I solved the previous one myself. But actually I want to make the gene names in Y axis larger. using larger base_size mingles my sample names on x axis. Is there a way to just increase the font size on Y axis? myfigure

fpusan commented 1 year ago

No, sorry, for that degree of customization you'll need to make the plot yourself. The table is at SQM$functions$KEGG$tpm

afsanarupa commented 1 year ago

okay, Thank you

afsanarupa commented 1 year ago

Hi, what should I do, If want to export a table containing specific functions?

fpusan commented 1 year ago

Use normal R syntax to select the row names with the functions you want. We provide the convenience function exportTable (easier to use than R's write.table) for actually writing things to a file

El mar., 17 ene. 2023 11:29, afsanarupa @.***> escribió:

Hi, what should I do, If want to export a table containing specific functions?

— Reply to this email directly, view it on GitHub https://github.com/jtamames/SqueezeMeta/issues/607#issuecomment-1385173035, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAHO7WJCPIH3OWYQIVJHULWSZX67ANCNFSM6AAAAAAT5ULFLI . You are receiving this because you modified the open/close state.Message ID: @.***>

afsanarupa commented 1 year ago

Thanks, but the problem is SQM$functions$KEGG$tpm has no name/function column, only KEGG id and tpm values.

fpusan commented 1 year ago

Yes, the KEGG id / function name relationships are in SQM$functions$KEGG_names