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

Hi all,

Using clusterProfiler I got this nice plot below

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 • 2.3k views
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.

0
Entering edit mode

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

0
Entering edit mode
11 weeks ago
Guangchuang Yu ★ 2.5k

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

0
Entering edit mode

Apparently 2.5 years ago it didn't but thanks anyway