From b6853d03f4e9b9b7dc55cd47723ee6e4ec9f924d Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 9 Jan 2017 09:47:20 +0000 Subject: [PATCH] add link to colourpicker package in colour_picker function man page --- R/colours.R | 3 +++ docs/reference/colour_picker.html | 22 +++++++++++++++++++--- man/colour_picker.Rd | 5 +++++ 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/R/colours.R b/R/colours.R index 3c3c978..bd70f4e 100644 --- a/R/colours.R +++ b/R/colours.R @@ -33,6 +33,9 @@ lighten <- function(color, factor=1.4){ ##' ##' @title A simple colour picker ##' @return A vector of colours. +##' @seealso The \code{codourpicker} package by Dean Attali is a much +##' more elaborate version of this function +##' \url{https://github.com/daattali/colourpicker}. ##' @author Laurent Gatto ##' @param hcl If \code{TRUE} (default), transforms the colour names ##' to hcl using \code{scale::col2hcl}. diff --git a/docs/reference/colour_picker.html b/docs/reference/colour_picker.html index 11a3a04..4d497ed 100644 --- a/docs/reference/colour_picker.html +++ b/docs/reference/colour_picker.html @@ -85,21 +85,37 @@

A simple colour picker

colours(). Uses the current device is none is open.

-
colour_picker()
+    
colour_picker(hcl = TRUE)
 
-color_picker()
- +color_picker(hcl = TRUE)
+ +

Arguments

+
+
hcl
+
If TRUE (default), transforms the colour names +to hcl using scale::col2hcl.
+
+

Value

A vector of colours.

+

See also

+ +

The codourpicker package by Dean Attali is a much + more elaborate version of this function + https://github.com/daattali/colourpicker.

+