UpSetR icon indicating copy to clipboard operation
UpSetR copied to clipboard

How to put a title on UpSetR diagram

Open WWolf opened this issue 8 years ago • 4 comments

Hi a simple question -- how do I put a title on the UpSetR diagram? Simple +ggtitle("title") seems to not work.

WWolf avatar Apr 13 '17 14:04 WWolf

Is this option available yet? Would be very useful

jst43 avatar Nov 21 '17 10:11 jst43

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))

NikoLichi avatar Nov 22 '17 17:11 NikoLichi

@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)

mapostolides avatar Feb 02 '21 16:02 mapostolides

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

jonocarroll avatar Feb 02 '21 20:02 jonocarroll