cmmr / rbiom

Interact with Biological Observation Matrix files.
https://cmmr.github.io/rbiom/
Other
12 stars 0 forks source link

Is there a way to add a title to ordinal plots #17

Closed shwetha141 closed 8 months ago

shwetha141 commented 8 months ago

1.) As the title suggests, is there a way to add a title to each UMAP other than the caption option that specifies the method?

For eg. I have multiple umaps across a wide range of phenotypes that need to be presented by a variable, making it easier to identify.

dansmith01 commented 8 months ago

The ggplot2 functions ggtitle() and labs() can help you here. rbiom's *_plot() functions all return a ggplot2 object, so you can do things like: p <- bdiv_ord_plot(...) + ggplot2::ggtitle("Custom Title", "Custom Subtitle")

shwetha141 commented 8 months ago

Got it. thank you :)