Skip to content

Commit 280c670

Browse files
committed
More documentation updates
1 parent eedb3d2 commit 280c670

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

DESCRIPTION

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ Package: ComplexUpset
22
Type: Package
33
Title: Create Complex UpSet Plots Using ggplot2 Components
44
Version: 0.4.0
5-
Author: Michał Krassowski
6-
Maintainer: Michał Krassowski <[email protected]>
5+
Authors@R: c(
6+
person("Michał", "Krassowski", email = "[email protected]", role = c("aut", "cre"),
7+
comment = c(ORCID = "0000-0002-9638-7785")
8+
)
9+
)
710
Description: UpSet plots are an improvement over Venn Diagram for set overlap visualizations.
811
Striving to bring the best of the UpSetR and ggplot2, this package offers a way to create
912
complex overlap visualisations, using simple and familiar tools, i.e. geoms of ggplot2.

R/upset.R

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ get_sort_order = function(data, sort_order) {
142142
}
143143

144144

145+
#' Prepare data for UpSet plots
145146
#' @export
146147
upset_data = function(
147148
data, intersect, min_size=0, max_size=Inf,
@@ -298,7 +299,7 @@ upset_themes = list(
298299

299300
#' Return the default UpSet themes modified with specified arguments
300301
#'
301-
#' @param ... arguments passed to theme()
302+
#' @param ... arguments passed to `theme()`
302303
#' @export
303304
upset_default_themes = function(...) {
304305
sapply(upset_themes, function(default) { c(default, list(theme(...))) })
@@ -307,7 +308,7 @@ upset_default_themes = function(...) {
307308

308309
#' Return the default UpSet themes with specific themes modified with provided themes
309310
#'
310-
#' @param to_update a named list of themes to be used to modify themes of specific components; see names(upset_themes) for components names.
311+
#' @param to_update a named list of themes to be used to modify themes of specific components; see `names(upset_themes)` for components names.
311312
#' @export
312313
upset_modify_themes = function(to_update) {
313314
c(
@@ -322,7 +323,10 @@ upset_modify_themes = function(to_update) {
322323
}
323324

324325

325-
#' Shorthand for annotations creation, using prespecified aes(x=intersection)
326+
#' Annotation panel shorthand
327+
#'
328+
#' Simplifies creation of annotation panels, automatically building aesthetics mappings,
329+
#' at a cost of lower flexibility than when providing a custom mapping; `aes(x=intersection)` is prespecified.
326330
#'
327331
#' @param y A string with the name of the y aesthetic
328332
#' @param y A geom to be used as an annotation
@@ -449,7 +453,7 @@ intersection_size = function(
449453
#' For use together with `intersection_size` or `intersection_ratio`
450454
#'
451455
#' @param digits How many digits to show when rounding the percentage?
452-
#' @param sep set to space (`' '`) if you prefer a whitespace between the number and the '\%` sign.
456+
#' @param sep set to space (`' '`) if you prefer a whitespace between the number and the `\%` sign.
453457
#'
454458
#' @export
455459
#' @examples
@@ -666,7 +670,7 @@ upset_query = function(set=NULL, intersect=NULL, only_components=NULL, ...) {
666670
#' @param dot_size size of the points on the intersection matrix
667671
#' @param overall_sizes whether to show the overall set sizes (barplot to the left), default TRUE
668672
#' @param overall_sizes_bar_width the thickness of the bars in the overal set sizes barplot
669-
#' @param ... passed to upset_data() which accepts: `(min_size=0, keep_empty_groups=FALSE, warn_when_dropping_groups=TRUE, sort_sets='descending', sort_intersections='descending')`
673+
#' @param ... passed to `upset_data()` which accepts: `(min_size=0, keep_empty_groups=FALSE, warn_when_dropping_groups=TRUE, sort_sets='descending', sort_intersections='descending')`
670674
#' @param sort_sets whether to sort the rows in the intersection matrix (descending sort by default); one of: `'ascending'`, `'descending'`, `FALSE`
671675
#' @param sort_intersections whether to sort the columns in the intersection matrix (descending sort by default); one of: `'ascending'`, `'descending'`, `FALSE`
672676
#' @export

movies.png

1011 Bytes
Loading

0 commit comments

Comments
 (0)