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

Introduces title to plots (closes #76) #127

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jonocarroll
Copy link
Contributor

  • 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

Adds title and title.pos arguments to upset, with respective defaults "" and c(x=0.65, y=0.95) (above the main plot components). No impact to plot when not used (plots the empty string as text) but the call to grid.text could be avoided entirely if you require.

Example:

library(UpSetR)
movies <- read.csv( system.file("extdata", "movies.csv", package = "UpSetR"), header=TRUE, sep=";" )
upset(movies, nsets = 7, nintersects = 30, mb.ratio = c(0.5, 0.5),
      order.by = c("freq", "degree"), decreasing = c(TRUE,FALSE), 
      title = "Movies", title.pos = c(x = 0.1, y = 0.95))

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
Merge branch 'master' of github.com:hms-dbmi/UpSetR into feature/plot-title

# Conflicts:
#	man/upset.Rd
@jonocarroll
Copy link
Contributor Author

Re-aligned with master branch. I believe the errors in checks are unrelated to this PR.

@mjsteinbaugh
Copy link

Any chance this can be merged and updated on CRAN? I'd love to be able to quickly add titles without having to mess with grid.text()!

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

Successfully merging this pull request may close these issues.

None yet

2 participants