This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Genoplotr: Is There Any Ways To Remove The Nt/Kb Scale Unit?

Hi,

Is there any way to modify the R code so that the nt/kb unit in the scale won't show up?

Thanks, AM

visualization

Which code, precisely? genoPlotR is a package. You are referring to a method in the package - which one?

2 answers

Judging by this documentation, setting SCALE=F in the plot_gene_map() function will do it.

I see now that you just want to remove the "bp" or "nt". It's probably as easy to plot to PNG and erase in your favourite graphics software.

I see now that you just want to remove the "bp" or "nt". It's probably as easy to plot to PNG and erase in your favourite graphics software. Admittedly not a great solution for many plots...

SCALE=F will disable the scale entire. I actually just wanted to delete the unit. For example, the default text display will be 200 bp, but I want it to be just 200 (without the unit bp)

I actually try to work around this by doing: trace(plot_gene_map,edit=TRUE) to look for relevant part of the code for me to edit. But I haven't found where to edit yet...

Please use comments for this, don't post as new answer.

Log in to answer this question.