Skip to content

Commit

Permalink
Fix #386
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Nov 1, 2023
1 parent c9fbe55 commit 6d87b34
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions R/trans.R
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
#' Create a new transformation object
#'
#' A transformation encapsulates a transformation and its inverse, as well
#' as the information needed to create pleasing breaks and labels. The breaks
#' function is applied on the transformed range of the range, and it's
#' expected that the labels function will perform some kind of inverse
#' transformation on these breaks to give them labels that are meaningful on
#' the original scale.
#' as the information needed to create pleasing breaks and labels. The `breaks()`
#' function is applied on the un-transformed range of the data, and the
#' `format()` function takes the output of the `breaks()` function and return
#' well-formatted labels.
#'
#' @param name transformation name
#' @param transform function, or name of function, that performs the
#' transformation
#' @param inverse function, or name of function, that performs the
#' inverse of the transformation
#' @param breaks default breaks function for this transformation. The breaks
#' function is applied to the raw data.
#' function is applied to the un-transformed data.
#' @param minor_breaks default minor breaks function for this transformation.
#' @param format default format for this transformation. The format is applied
#' to breaks generated to the raw data.
#' to breaks generated on the un-transformed data.
#' @param domain domain, as numeric vector of length 2, over which
#' transformation is valued. The function in the `transform` argument is
#' expected to be able to transform the `domain` argument.
Expand Down
13 changes: 6 additions & 7 deletions man/trans_new.Rd

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

0 comments on commit 6d87b34

Please sign in to comment.