Hide the up legend in Manhattan plot by gProfiler
1
0
Entering edit mode
3.0 years ago

Hi, I'm recently i started to using gprofiler (https://biit.cs.ut.ee/gprofiler/page/r), I made a graph with the gostplot function and I want to remove the legend "query_1", I tried modifying the title using layout (title = "UP genes"), but that don´t solve it.

Someone know how to remove or hide the legend. Thank you so much

This is my plot

graph R plotly gprofiler plot • 1.3k views
ADD COMMENT
1
Entering edit mode

Looks like it might be a facet label. Try removing it using the ggplot theme function.

p <- p + theme(strip.text=element_blank())

This assumes your plot is saved as variable p.

ADD REPLY
1
Entering edit mode
3.0 years ago
liis.kolberg ▴ 10

Hi! You can rename your gene list(s) in the gost() function by using a named list as a query gene list. For example,

gostres = gost(query = list("UP genes" = c("X:1000:1000000", "rs17396340", "GO:0005005", "ENSG00000156103", "NLRP1")))
gostplot(gostres)

You can have multiple gene lists with your own names there, and then these are the names that are used in the other functions, including gostplot().

ADD COMMENT

Login before adding your answer.

Traffic: 1072 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6