Closed TdzBAS closed 3 months ago
Hi @TdzBAS,
Thanks for using my package!
Would it be possible if you could include the code that you used to generate this plot? That will allow me to have a better understanding of the issue.
Many thanks! Enrique
Hi @enblacar,
thanks for your quick reply!
this is the code:
So i want to see the featurenames above the featureplots.
Many Thanks! Tolga
Hi @TdzBAS,
I see! Can you please retry with legend.position = "bottom"
and let me know if that works?
If what you want to do is just show the feature names, this is normally encoded in the legend in SCpubr::do_FeaturePlot()
. With the current release, you will have to add then manually afterwards if you want to still remove the legend:
p <- your_plot
# For each panel, add the title manually.
p[[1]] <- p[[1]] + ggplot2::ggtitle("your_title")
p[[2]] <- p[[2]] + ggplot2::ggtitle("your_other_title")
Hope this helps!
Best, Enrique
thanks this worked!
The title is now leftadjusted, can i center it?
You can do it with:
p <- p + ggplot2::theme(plot.title = ggplot2::element_text(hjust = 0.5))
Glad it helped! Enrique
Hi @mojaveazure,
thanks for your awesome tool!
I cant see how I can show the featurenames, if I plot a featurevector:
Do you have an idea?
Best, Tolga