-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
56 lines (40 loc) · 1.19 KB
/
README.Rmd
File metadata and controls
56 lines (40 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include=FALSE}
knitr::opts_chunk$set(collapse = TRUE,
comment = "#>",
out.width = "100%"
)
```
# nish
## Overview
nish provides discrete and continuous scales and different themes to be used
with ggplot2
## Installation
Install the development version from GitHub.
```{r, eval = FALSE}
# install.packages("devtools")
devtools::install_github("rrunner/nish")
```
## Usage
```{r, eval = FALSE, message = FALSE}
library(ggplot2)
library(nish)
ggplot(economics_long, aes(date, value01, colour = variable)) +
geom_line(size = 0.8) +
labs(x = NULL, y = NULL, colour = NULL) +
scale_colour_nish_blue() +
theme_nish_blue()
ggplot(faithfuld, aes(waiting, eruptions)) +
geom_raster(aes(fill = density)) +
scale_fill_gradientn_nish()
ggplot(data = mtcars) +
geom_bar(aes(x = factor(gear), fill = factor(carb))) +
labs(x = "gear", fill = "carb") +
scale_fill_nish_pink() +
theme_nish_white()
```
## Getting help and report issues
If you encounter a clear bug, please file an issue with a minimal reproducible example on [GitHub](https://github.com/rrunner/nish/issues).