Skip to content

Commit 26889a6

Browse files
committed
doc: improve documentation for geoms
1 parent d2f5e79 commit 26889a6

File tree

7 files changed

+47
-44
lines changed

7 files changed

+47
-44
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ biocViews:
2121
Coverage,
2222
Encoding: UTF-8
2323
Roxygen: list(markdown = TRUE)
24-
RoxygenNote: 7.2.3
24+
RoxygenNote: 7.3.2
2525
Depends:
2626
R (>= 4.3.0),
2727
SummarizedExperiment

R/CoverageExperiment.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#' CoverageExperiment
22
#'
3-
#' #' @description
3+
#' @description
44
#'
55
#' `CoverageExperiment` objects store coverages for individual
66
#' tracks over different sets of features. The `coverage`
77
#' assay contains a separate matrix for each combination of
88
#' track x features. `CoverageExperiment` objects are instantiated
9-
#' using the `CoverageExperiment()` #' function, and can be
9+
#' using the `CoverageExperiment()` function, and can be
1010
#' coarsened using the `coarsen()` function.
1111
#'
1212
#' @name CoverageExperiment

R/geoms.R

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
11
#' Plotting functions
22
#'
3-
#' #' @description
3+
#' @description
44
#'
5-
#' Plotting functions for tidyCoverage objects
5+
#' Plotting functions for tidyCoverage objects.
6+
#' Two geoms are provided:
7+
#'
8+
#' - `geom_coverage()`: for plotting coverages over individual loci.
9+
#' - `geom_aggrcoverage()`: for plotting aggregated coverages with confidence intervals.
10+
#'
11+
#' See the Details section for more information on the aesthetics used by each geom.
12+
#'
13+
#' @details
14+
#'
15+
#' These geoms are drawn using `geom_line`/`ribbon`/`area()` so they support the same
16+
#' aesthetics: `colour`, `linetype` and `linewidth.` Both geoms also support
17+
#' the `unit` argument to control the x axis units (b, kb, Mb).
18+
#'
19+
#' In addition, they each support additional arguments:
20+
#'
21+
#' - `geom_coverage` uses a `type` argument to switch between line plot and area plots;
22+
#' - `geom_aggrcoverage` uses a `ci` argument to toggle the confidence interval display.
623
#'
724
#' @name ggplot-tidyCoverage
825
#' @rdname ggplot-tidyCoverage
926
#'
10-
#' @param mapping Aesthetics for geom_*. By default, no color/fill aesthetic
27+
#' @param mapping Set of aesthetic mappings created by aes().
28+
#' By default, no color/fill aesthetic
1129
#' is specified, but they can be assigned to a variable with `mapping = aes(...)`.
1230
#' Note that `x` and `y` are automatically filled.
1331
#' @param data Data frame passed to geom_*. Typically a `CoverageExperiment` object
@@ -19,7 +37,7 @@
1937
#' @param grid Should the plot grid by displayed? (default: FALSE).
2038
#' @param ...,na.rm,show.legend,inherit.aes Argument passed to `ggplot`
2139
#' internal functions
22-
#' @return A `ggplot` object`
40+
#' @return A `ggplot` object
2341
#'
2442
#' @import ggplot2
2543
#' @importFrom scales oob_squish

man/CoverageExperiment.Rd

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/ggplot-tidyCoverage.Rd

Lines changed: 20 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/reexports.Rd

Lines changed: 0 additions & 28 deletions
This file was deleted.

man/show.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)