relevel the clusterProfiler object
1
1
Entering edit mode
5.7 years ago

Hi all,

Using clusterProfiler I got this nice plot below

enter image description here

But I can't figure out how to relevel the Timepoint factor in the compareCluster object, so the plot appears in 3h, 12h , 24h order.

dotplot function unfortunately does not accept dataframe, otherwise I would have releveled the dataframe.

thanks

clusterProfiler • 4.7k views
ADD COMMENT
0
Entering edit mode

I've used clusterProfiler a lot, and most of the time I've found it's quicker/easier to clean it up in Illustrator than try to adjust the graphic. It's a useful package, but doesn't have a ton of flexibility in regards to its plotting. If you ask on Bioconductor, the author might be able to give you an answer.

ADD REPLY
0
Entering edit mode

thanks for recommendation. This particular plot does not seem very complicated so maybe even worth to code it myself.

ADD REPLY
1
Entering edit mode
3.3 years ago
Guangchuang Yu ★ 2.6k

it does accept a data frame as input for compareCluster, see our recent publication, https://doi.org/10.1016/j.xinn.2021.100141.

ADD COMMENT
0
Entering edit mode

Apparently 2.5 years ago it didn't but thanks anyway

ADD REPLY

Login before adding your answer.

Traffic: 2033 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