Skip to content

Commit

Permalink
fixed all lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aronnyberg committed Nov 21, 2024
1 parent 29b0a4c commit 656d470
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/use_afcharts.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


use_afcharts <- function(default_colour = af_colour_values["dark-blue"],
...) {
...) {

# Use afcharts theme ----

Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ save_govuk <- function(filename,

device <- match.arg(device)

if (device == "svg"){
if (device == "svg") {
width <- 960 / 72
height <- 640 / 72
units <- "in"
Expand Down
1 change: 0 additions & 1 deletion vignettes/colours.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ afcharts::af_colour_palettes
# View names and hex codes for `main` colour palette
afcharts::af_colour_palettes$main
```

Examples of how to apply these palettes to ggplot2 charts are available in both the [cookbook](https://best-practice-and-impact.github.io/afcharts/articles/cookbook.html) and the reference files for `scale_` [colour functions](https://best-practice-and-impact.github.io/afcharts/reference/index.html#colours).
2 changes: 1 addition & 1 deletion vignettes/cookbook/_customisations.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ limits_pretty <- function(x, ...) range(pretty(x, ...))
last_plot() +
scale_x_continuous(expand = expansion(mult = c(0, .1)),
breaks = pretty,
breaks = pretty,
limits = limits_pretty)
```
Expand Down

0 comments on commit 656d470

Please sign in to comment.