Skip to content

Commit

Permalink
remove badges for CRAN submission
Browse files Browse the repository at this point in the history
  • Loading branch information
cwickham committed Jun 11, 2018
1 parent 289bdbc commit 34c1161
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
8 changes: 3 additions & 5 deletions README.Rmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
output:
md_document:
variant: markdown_github
output: github_document
---

<!-- README.md is generated from README.Rmd. Please edit that file -->
Expand All @@ -14,9 +12,9 @@ knitr::opts_chunk$set(
)
```

![Downloads](http://cranlogs.r-pkg.org/badges/last-week/munsell)
<!-- ![Downloads](http://cranlogs.r-pkg.org/badges/last-week/munsell) -->

[![Travis build status](https://travis-ci.org/cwickham/munsell.svg?branch=master)](https://travis-ci.org/cwickham/munsell)
<!-- [![Travis build status](https://travis-ci.org/cwickham/munsell.svg?branch=master)](https://travis-ci.org/cwickham/munsell) -->

# munsell

Expand Down
27 changes: 12 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->
![Downloads](http://cranlogs.r-pkg.org/badges/last-week/munsell)

[![Travis build
status](https://travis-ci.org/cwickham/munsell.svg?branch=master)](https://travis-ci.org/cwickham/munsell)
<!-- ![Downloads](http://cranlogs.r-pkg.org/badges/last-week/munsell) -->

<!-- [![Travis build status](https://travis-ci.org/cwickham/munsell.svg?branch=master)](https://travis-ci.org/cwickham/munsell) -->

munsell
=======
# munsell

The `munsell` package provides easy access to, and manipulation of, the
Munsell colours. The `munsell` package provides a mapping between
Expand All @@ -32,12 +32,11 @@ with:
devtools::install_github("cwickham/munsell")
```

Color specification
-------------------
## Color specification

Following Munsell, specifying colours is done with a specific string
format: “H V/C” where H is a hue code (see `mnsl_hues()` for a list of
those available, excluding “N”), V an integer in \[0, 10\] specifying
those available, excluding “N”), V an integer in \([0, 10]\) specifying
value, and C an even integer specifying chroma. The `mnsl` function
takes the string and returns a hexadecimal RGB representation:

Expand All @@ -57,8 +56,7 @@ rect(0, 0, 1 ,1 , col = mnsl("5R 5/10"))
plot_mnsl("5R 5/10")
```

Colour manipulation
-------------------
## Colour manipulation

`munsell` provides convenience functions that alter a colour by taking
steps in the hue, value and chroma dimensions: `rygbp`, `pbgyr`,
Expand All @@ -73,7 +71,7 @@ p <- plot_mnsl(c(
p
```

![](man/figures/README-manipulate-blue-1.png)
![](man/figures/README-manipulate-blue-1.png)<!-- -->

Each function optionally takes the number of steps to take in the
dimension and consequently are easily used to create scales in a
Expand All @@ -84,10 +82,9 @@ p <- plot_mnsl(sapply(0:6, darker, col = "5PB 7/4"))
p + ggplot2::facet_wrap(~ num, nrow = 1)
```

![](man/figures/README-palette-1.png)
![](man/figures/README-palette-1.png)<!-- -->

Colour space exploration
------------------------
## Colour space exploration

Slices through the colour space of constant hue, chroma or value can be
displayed using the functions: `hue_slice`, `chroma_slice` and
Expand All @@ -99,4 +96,4 @@ the opposite side of the colour sphere to that specified.
complement_slice("5R")
```

![](man/figures/README-complement-slice-1.png)
![](man/figures/README-complement-slice-1.png)<!-- -->

0 comments on commit 34c1161

Please sign in to comment.