Skip to content

Commit 49079ea

Browse files
author
David Hodge
committed
Update
1 parent 032bbd0 commit 49079ea

29 files changed

+184
-196
lines changed

docs/articles/colour.html

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading
Loading

docs/articles/ggplotly.html

Lines changed: 31 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/leaflet.html

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/scales.html

Lines changed: 24 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

docs/articles/simplevis.html

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading

docs/pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ articles:
88
scales: scales.html
99
shiny: shiny.html
1010
simplevis: simplevis.html
11-
last_built: 2021-06-04T08:52Z
11+
last_built: 2021-06-04T09:37Z
1212

vignettes/colour.Rmd

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ date: "`r Sys.Date()`"
77
```{r, include = FALSE}
88
knitr::opts_chunk$set(
99
collapse = TRUE,
10-
comment = "#>"
10+
comment = "#>",
11+
message = FALSE,
12+
warning = FALSE,
13+
fig.height = 3.5,
14+
fig.width = 6
1115
)
1216
```
1317

14-
```{r, message = FALSE, warning = FALSE}
18+
```{r}
1519
library(dplyr)
1620
library(simplevis)
1721
library(palmerpenguins)
@@ -29,7 +33,7 @@ In simplevis, users define the following to adjust colours:
2933

3034
The colour palette can be changed from the default viridis colours by providing a character vector of hex codes to the `pal` argument.
3135

32-
```{r, message = FALSE, warning = FALSE, fig.height = 3.5, fig.width = 6}
36+
```{r}
3337
gg_point(penguins, bill_length_mm, body_mass_g, pal = "#e7298a")
3438
3539
```
@@ -40,7 +44,7 @@ Users can get access to a large amount of colour palettes through the `pals` pac
4044

4145
To colour by a variable, use a `*_col` function
4246

43-
```{r, message = FALSE, warning = FALSE, fig.height = 3.5, fig.width = 6}
47+
```{r}
4448
gg_point_col(penguins, bill_length_mm, body_mass_g, species,
4549
pal = c("#1B9E77", "#D95F02", "#7570B3"))
4650
```
@@ -56,7 +60,7 @@ You do this by specifying whether you want to do this by:
5660
* defining whether the col_method is to be by `bin` or `quantile`
5761
* defining a vector or col_cuts. These should be between 0 and infinity (`Inf`) for `bin` and between 0 and 1 for `quantile`
5862

59-
```{r, message = FALSE, warning = FALSE, fig.height = 3.5, fig.width = 6}
63+
```{r}
6064
plot_data <- ggplot2::diamonds %>%
6165
slice_sample(prop = 0.01)
6266
@@ -71,7 +75,7 @@ gg_point_col(plot_data,
7175
```
7276

7377

74-
```{r, message = FALSE, warning = FALSE, fig.height = 3.5, fig.width = 6}
78+
```{r}
7579
gg_point_col(plot_data,
7680
x_var = carat,
7781
y_var = price,

0 commit comments

Comments
 (0)