Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to put a title on UpSetR diagram #76

Open
WWolf opened this issue Apr 13, 2017 · 4 comments
Open

How to put a title on UpSetR diagram #76

WWolf opened this issue Apr 13, 2017 · 4 comments

Comments

@WWolf
Copy link

WWolf commented Apr 13, 2017

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

@jst43
Copy link

jst43 commented Nov 21, 2017

Is this option available yet? Would be very useful

@NikoLichi
Copy link

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 added a commit to jonocarroll/UpSetR that referenced this issue Jul 19, 2018
updated NEWS
minor differences in upset.Rd likely due to different roxygen versions
NAMESPACE changes (not committed) likely due to roxygen versions/out of date build
@mapostolides
Copy link

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

@jonocarroll
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants