dputhier / scigenex

This repository stores the scigenex R library.
Other
4 stars 2 forks source link

Add a parameter to plot_clust_enrichments to manage the number of character per line #123

Closed JulieBvs closed 1 year ago

dputhier commented 1 year ago

I think you should have a look at the label_wrap()function from the scales library.

       library(scales)
       load_example_dataset("8028226/files/pbmc3k_medium_clusters_enr_sub")
       p <- plot_clust_enrichments(pbmc3k_medium_clusters_enr_sub)
       p +  scales::scale_y_discrete(labels = label_wrap(100))
dputhier commented 1 year ago

Tell me if it's ok.