Added documebtation
This commit is contained in:
parent
97b74dc343
commit
079b3f8fe4
1 changed files with 11 additions and 0 deletions
|
|
@ -1,3 +1,14 @@
|
|||
#' @title Return function to interpolate a fallback palette base on viridis::magma()
|
||||
#'
|
||||
#' @param reverse Boolean indicating whether the palette should be reversed
|
||||
#' @param color_ramp_palette Should the output be a `grDevices::colorRampPalette` function or a vector of hex codes? Default to the latter with `FALSE`
|
||||
#' @param discrete Boolean. Discrete or not? Default to FALSE.
|
||||
#' @param n Number of colors in the palette. Default to 5. Passe to `viridis::magma()`
|
||||
#' @param ... Other parameters to pass to `grDevices::colorRampPalette()`
|
||||
#'
|
||||
#' @return A color palette
|
||||
#'
|
||||
#' @export
|
||||
pal_fallback <- function(reverse = FALSE,
|
||||
color_ramp_palette = FALSE,
|
||||
discrete = FALSE,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue