Skip to content

Commit

Permalink
Describe function outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
csdaw committed Feb 10, 2021
1 parent 8539bba commit aed045e
Show file tree
Hide file tree
Showing 28 changed files with 89 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/add_pvalue.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
#' @param ... Additional aesthetics or arguments passed to
#' \code{\link[ggplot2]{layer}}. See below for allowed values.
#'
#' @return Returns a _layer_ ggproto object with either `geom = GeomBracket` or
#' `geom = GeomText`.
#'
#' @section Allowed ... values:
#' `add_pvalue` understands the following additional aesthetics or arguments:
#'
Expand Down
2 changes: 2 additions & 0 deletions R/annotation_ticks.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#' faceting variable you want to annotate specifically.
#' See [here](https://stackoverflow.com/questions/20128582) for an example.
#'
#' @return Returns a _layer_ ggproto object with `geom = GeomTicks`.
#'
#' @example inst/examples/ex-annotation_ticks.R
#'
#' @export
Expand Down
2 changes: 2 additions & 0 deletions R/guide_prism_bracket.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#' outwards. If `FALSE` the bracket crossbar is moved so the ticks appear
#' to point inwards towards the plotting area.
#'
#' @return Returns a \emph{prism_bracket} guide class object.
#'
#' @example inst/examples/ex-guide_prism_bracket.R
#'
#' @export
Expand Down
2 changes: 2 additions & 0 deletions R/guide_prism_minor.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#'
#' @inheritParams ggplot2::guide_axis
#'
#' @return Returns a \emph{prism_minor} guide class object.
#'
#' @example inst/examples/ex-guide_prism_minor.R
#'
#' @export
Expand Down
2 changes: 2 additions & 0 deletions R/guide_prism_offset.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#'
#' @inheritParams ggplot2::guide_axis
#'
#' @return Returns a \emph{prism_offset} guide class object.
#'
#' @example inst/examples/ex-guide_prism_offset.R
#'
#' @export
Expand Down
2 changes: 2 additions & 0 deletions R/guide_prism_offset_minor.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#'
#' @inheritParams ggplot2::guide_axis
#'
#' @return Returns a \emph{prism_offset_minor} guide class object.
#'
#' @example inst/examples/ex-guide_prism_offset_minor.R
#'
#' @export
Expand Down
2 changes: 2 additions & 0 deletions R/preview_theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#'
#' @param palette `string`. Palette name.
#'
#' @return Returns an object of class _ggplot_.
#'
#' @example inst/examples/ex-preview_theme.R
#'
#' @export
Expand Down
3 changes: 3 additions & 0 deletions R/prism_colour_pal.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#' colour schemes available in GraphPad Prism.
#'
#' @inheritParams scale_colour_prism
#' @return Returns a function which takes a single integer as its only argument
#' and returns a character vector of hexadecimal colours.
#' See the examples below for usage.
#' @example inst/examples/ex-prism_colour_pal.R
#' @export
prism_colour_pal <- function(palette = "colors") {
Expand Down
3 changes: 3 additions & 0 deletions R/prism_fill_pal.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#' colour schemes available in GraphPad Prism.
#'
#' @inheritParams scale_fill_prism
#' @return Returns a function which takes a single integer as its only argument
#' and returns a character vector of hexadecimal colours.
#' See the examples below for usage.
#' @example inst/examples/ex-prism_fill_pal.R
#' @export
prism_fill_pal <- function(palette = "colors") {
Expand Down
4 changes: 4 additions & 0 deletions R/prism_shape_pal.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#' have a fill.
#'
#' @inheritParams scale_shape_prism
#' @return Returns a function which takes a single integer as its only argument
#' and returns a character vector of integers which correspond to R plot pch
#' symbols.
#' See the examples below for usage.
#' @example inst/examples/ex-prism_shape_pal.R
#' @export
prism_shape_pal <- function(palette = c("default", "filled", "complete")) {
Expand Down
3 changes: 3 additions & 0 deletions R/scale_colour_prism.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#' and their number of values each palette supports.
#' @inheritDotParams ggplot2::discrete_scale -aesthetics -scale_name
#'
#' @return Returns a ggproto object of class _ScaleDiscrete_ which works with
#' _colour_ aesthetics.
#'
#' @example inst/examples/ex-scale_colour_prism.R
#'
#' @export
Expand Down
3 changes: 3 additions & 0 deletions R/scale_fill_prism.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#' for valid palette names.
#' @inheritDotParams ggplot2::discrete_scale -aesthetics -scale_name
#'
#' @return Returns a ggproto object of class _ScaleDiscrete_ which works with
#' _fill_ aesthetics.
#'
#' @example inst/examples/ex-scale_fill_prism.R
#'
#' @export
Expand Down
3 changes: 3 additions & 0 deletions R/scale_shape_prism.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#' `filled`, or `complete`.
#' @inheritDotParams ggplot2::discrete_scale -aesthetics -scale_name
#'
#' @return Returns a ggproto object of class _ScaleDiscrete_ which works with
#' _shape_ aesthetics.
#'
#' @example inst/examples/ex-scale_shape_prism.R
#'
#' @export
Expand Down
2 changes: 2 additions & 0 deletions R/theme_prism.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#' @param border `logical`. Should a border be drawn around the plot?
#' Clipping will occur unless e.g. `coord_cartesian(clip = "off")` is used.
#'
#' @return Returns a list-like object of class _theme_.
#'
#' @example inst/examples/ex-theme_prism.R
#'
#' @export
Expand Down
4 changes: 4 additions & 0 deletions man/add_pvalue.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/annotation_ticks.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/guide_prism_bracket.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/guide_prism_minor.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/guide_prism_offset.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/guide_prism_offset_minor.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/preview_theme.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions man/prism_colour_pal.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions man/prism_fill_pal.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions man/prism_shape_pal.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions man/scale_colour_prism.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions man/scale_fill_prism.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions man/scale_shape_prism.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/theme_prism.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aed045e

Please sign in to comment.