diff --git a/CRAN-RELEASE b/CRAN-RELEASE index e1867df..4953cbd 100644 --- a/CRAN-RELEASE +++ b/CRAN-RELEASE @@ -1,2 +1,2 @@ -This package was submitted to CRAN on 2018-12-05. -Once it is accepted, delete this file and tag the release (commit a8f32fd5fe). +This package was submitted to CRAN on 2020-04-17. +Once it is accepted, delete this file and tag the release (commit a77096f62a). diff --git a/README.Rmd b/README.Rmd index 0b65fc5..1c2b7c9 100644 --- a/README.Rmd +++ b/README.Rmd @@ -8,7 +8,7 @@ output: github_document knitr::opts_chunk$set( collapse = TRUE, comment = "#>", - fig.path = "tools/README-", + fig.path = "man/figures/README-", fig.width = 5, fig.height = 1 ) ``` diff --git a/README.md b/README.md index 4a56718..9b9eb57 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ library(tinter) hex <- "#335CAC" ``` -![](tools/README-colour-1.png) +![](man/figures/README-colour-1.png) ``` r tinter(hex) @@ -42,31 +42,31 @@ tinter(hex) #> [8] "#142444" "#0A1222" ``` -![](tools/README-tinter-1.png) +![](man/figures/README-tinter-1.png) ``` r tinter(hex, direction = "tints") ``` -![](tools/README-tints-1.png) +![](man/figures/README-tints-1.png) ``` r tinter(hex, steps = 10) ``` -![](tools/README-steps-1.png) +![](man/figures/README-steps-1.png) ``` r tinter(hex, steps = 10, crop = 7) ``` -![](tools/README-crop-1.png) +![](man/figures/README-crop-1.png) ``` r tinter(hex, steps = 10, crop = 7, adjust = 0.4) ``` -![](tools/README-darken-1.png) +![](man/figures/README-darken-1.png) ### Create a choropleth map @@ -84,7 +84,7 @@ ggplot(data = nc) + coord_sf(datum = NA) ``` -![](tools/README-plot-1.png) +![](man/figures/README-plot-1.png) ### Doesn’t this already exist? diff --git a/docs/404.html b/docs/404.html index f8be9b0..7394d15 100644 --- a/docs/404.html +++ b/docs/404.html @@ -141,7 +141,7 @@

Contents

-

Site built with pkgdown 1.5.0.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/CODE_OF_CONDUCT.html b/docs/CODE_OF_CONDUCT.html index 9d6bfe3..2d93a34 100644 --- a/docs/CODE_OF_CONDUCT.html +++ b/docs/CODE_OF_CONDUCT.html @@ -149,7 +149,7 @@

Contents

-

Site built with pkgdown 1.5.0.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index d380ab4..e381651 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -143,7 +143,7 @@

Contents

-

Site built with pkgdown 1.5.0.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/LICENSE.html b/docs/LICENSE.html index 3d17ef7..54a0c26 100644 --- a/docs/LICENSE.html +++ b/docs/LICENSE.html @@ -124,9 +124,9 @@

MIT License

Copyright (c) 2018 Poisson Consulting Ltd.

-

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

+

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

-

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@@ -147,7 +147,7 @@

Contents

-

Site built with pkgdown 1.5.0.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/authors.html b/docs/authors.html index f2212bd..13d5aee 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -144,7 +144,7 @@

Authors

-

Site built with pkgdown 1.5.0.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/index.html b/docs/index.html index 9a9e4d2..81778f7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -86,26 +86,26 @@

Introduction

tinter provides a simple way to generate monochromatic palettes. Easily define:

library(tinter)
 hex <- "#335CAC"
-

+

tinter(hex)
 #> [1] "#D6DEEE" "#ADBDDD" "#849DCD" "#5B7CBC" "#335CAC" "#284989" "#1E3767"
 #> [8] "#142444" "#0A1222"
-

+

tinter(hex, direction = "tints")
-

+

tinter(hex, steps = 10)
-

+

tinter(hex, steps = 10, crop = 7)
-

+

tinter(hex, steps = 10, crop = 7, adjust = 0.4)
-

+

@@ -116,17 +116,17 @@

nc <- st_read(system.file(package = "sf", "shape/nc.shp")) ggplot(data = nc) + - geom_sf(aes(fill = AREA), colour = "white", lwd = 0.05) + + geom_sf(aes(fill = AREA), colour = "white", lwd = 0.04) + # colours from tinter scale_fill_gradientn(colours = tinter(hex)) + theme_void() + coord_sf(datum = NA)

-

+

-Doesn’t this already exist?

-

tinter just simplifies a task usually done with grDevices. It’s default is to remove black and white from the palette.

+Doesn’t this already exist? +

tinter just simplifies a task usually done with grDevices. It’s default is to remove black and white from the palette.

tinter("blue")
 #> [1] "#CCCCFF" "#9999FF" "#6666FF" "#3333FF" "#0000FF" "#0000CC" "#000099"
 #> [8] "#000065" "#000032"
@@ -169,7 +169,7 @@ 

Contribution

Please report any issues.

Pull requests are always welcome.

-

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

+

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

@@ -227,7 +227,7 @@

Dev status

-

Site built with pkgdown 1.5.0.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/news/index.html b/docs/news/index.html index 0aa1f16..55ff82a 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -132,7 +132,7 @@

-tinter 0.1.0 Unreleased +tinter 0.1.0 2020-04-17

-

Site built with pkgdown 1.5.0.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 83a4426..c709275 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -1,6 +1,6 @@ pandoc: '2.4' -pkgdown: 1.5.0 +pkgdown: 1.5.1 pkgdown_sha: ~ articles: [] -last_built: 2020-04-16T18:44Z +last_built: 2020-05-08T01:29Z diff --git a/docs/reference/chk_color.html b/docs/reference/chk_color.html index da78fbf..ac71f07 100644 --- a/docs/reference/chk_color.html +++ b/docs/reference/chk_color.html @@ -193,7 +193,7 @@

Contents

-

Site built with pkgdown 1.5.0.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/darken.html b/docs/reference/darken.html index 75b9c83..708646b 100644 --- a/docs/reference/darken.html +++ b/docs/reference/darken.html @@ -165,7 +165,7 @@

Contents

-

Site built with pkgdown 1.5.0.

+

Site built with pkgdown 1.5.1.

diff --git a/tools/README-colour-1.png b/docs/reference/figures/README-colour-1.png similarity index 100% rename from tools/README-colour-1.png rename to docs/reference/figures/README-colour-1.png diff --git a/tools/README-crop-1.png b/docs/reference/figures/README-crop-1.png similarity index 100% rename from tools/README-crop-1.png rename to docs/reference/figures/README-crop-1.png diff --git a/tools/README-darken-1.png b/docs/reference/figures/README-darken-1.png similarity index 100% rename from tools/README-darken-1.png rename to docs/reference/figures/README-darken-1.png diff --git a/tools/README-plot-1.png b/docs/reference/figures/README-plot-1.png similarity index 100% rename from tools/README-plot-1.png rename to docs/reference/figures/README-plot-1.png diff --git a/tools/README-steps-1.png b/docs/reference/figures/README-steps-1.png similarity index 100% rename from tools/README-steps-1.png rename to docs/reference/figures/README-steps-1.png diff --git a/tools/README-tinter-1.png b/docs/reference/figures/README-tinter-1.png similarity index 100% rename from tools/README-tinter-1.png rename to docs/reference/figures/README-tinter-1.png diff --git a/tools/README-tints-1.png b/docs/reference/figures/README-tints-1.png similarity index 100% rename from tools/README-tints-1.png rename to docs/reference/figures/README-tints-1.png diff --git a/docs/reference/index.html b/docs/reference/index.html index 0e0cf0b..124f7c5 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -190,7 +190,7 @@

Contents

-

Site built with pkgdown 1.5.0.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/lighten.html b/docs/reference/lighten.html index bc4ac0b..0365128 100644 --- a/docs/reference/lighten.html +++ b/docs/reference/lighten.html @@ -165,7 +165,7 @@

Contents

-

Site built with pkgdown 1.5.0.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/tinter.html b/docs/reference/tinter.html index f6630af..99430d0 100644 --- a/docs/reference/tinter.html +++ b/docs/reference/tinter.html @@ -179,7 +179,7 @@

Contents

-

Site built with pkgdown 1.5.0.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/vld_color.html b/docs/reference/vld_color.html index 278fe8a..06bdb99 100644 --- a/docs/reference/vld_color.html +++ b/docs/reference/vld_color.html @@ -178,7 +178,7 @@

Contents

-

Site built with pkgdown 1.5.0.

+

Site built with pkgdown 1.5.1.

diff --git a/man/figures/README-colour-1.png b/man/figures/README-colour-1.png new file mode 100644 index 0000000..cf05fb0 Binary files /dev/null and b/man/figures/README-colour-1.png differ diff --git a/man/figures/README-crop-1.png b/man/figures/README-crop-1.png new file mode 100644 index 0000000..73bd668 Binary files /dev/null and b/man/figures/README-crop-1.png differ diff --git a/man/figures/README-darken-1.png b/man/figures/README-darken-1.png new file mode 100644 index 0000000..cf39edc Binary files /dev/null and b/man/figures/README-darken-1.png differ diff --git a/man/figures/README-plot-1.png b/man/figures/README-plot-1.png new file mode 100644 index 0000000..ee65871 Binary files /dev/null and b/man/figures/README-plot-1.png differ diff --git a/man/figures/README-steps-1.png b/man/figures/README-steps-1.png new file mode 100644 index 0000000..4b8ceb1 Binary files /dev/null and b/man/figures/README-steps-1.png differ diff --git a/man/figures/README-tinter-1.png b/man/figures/README-tinter-1.png new file mode 100644 index 0000000..7b44656 Binary files /dev/null and b/man/figures/README-tinter-1.png differ diff --git a/man/figures/README-tints-1.png b/man/figures/README-tints-1.png new file mode 100644 index 0000000..9b5068a Binary files /dev/null and b/man/figures/README-tints-1.png differ