UpSetR
UpSetR copied to clipboard
How to put a title on UpSetR diagram
Hi a simple question -- how do I put a title on the UpSetR diagram? Simple +ggtitle("title") seems to not work.
Is this option available yet? Would be very useful
I found a way!!
After using the upset command, you can use the grid.text from the package grid.
In my case I used like this:
grid.text("My_Title",x = 0.65, y=0.95, gp=gpar(fontsize=20))
@jonocarroll Thanks for this great package! It seems like "title" parameter is not available when I installed UpSetR (installed Feb 2 2021).
The reason seems to be that by default, UpSetR_1.4.0 is installed and the update was made in version 1.4.1
upset(data, nsets = 5, nintersects = 40, sets = NULL,
keep.order = F, set.metadata = NULL, intersections = NULL,
matrix.color = "gray23", main.bar.color = "gray23",
mainbar.y.label = "Intersection Size", mainbar.y.max = NULL,
sets.bar.color = "gray23", sets.x.label = "Set Size",
point.size = 2.2, line.size = 0.7, mb.ratio = c(0.7, 0.3),
expression = NULL, att.pos = NULL, att.color = main.bar.color,
order.by = c("freq", "degree"), decreasing = c(T, F),
show.numbers = "yes", number.angles = 0, group.by = "degree",
cutoff = NULL, queries = NULL, query.legend = "none",
shade.color = "gray88", shade.alpha = 0.25, matrix.dot.alpha = 0.5,
empty.intersections = NULL, color.pal = 1, boxplot.summary = NULL,
attribute.plots = NULL, scale.intersections = "identity",
scale.sets = "identity", text.scale = 1, set_size.angles = 0,
set_size.show = FALSE, set_size.numbers_size = NULL,
set_size.scale_max = NULL)
Hi @mapostolides - my PR to add titles was not merged so this functionality only exists in the feature/plot-title branch of my fork: https://github.com/jonocarroll/UpSetR/tree/feature/plot-title