tests/testthat/_snaps/scales_fill_hypso.md

Discrete scale

Code
  p + scale_fill_hypso_d(alpha = -1)
Condition
  Error in `scale_fill_hypso_d()`:
  ! `alpha` -1 not in [0,1]
Code
  p + scale_fill_hypso_d(direction = 0.5)
Condition
  Error in `scale_fill_hypso_d()`:
  ! `direction` must be 1 or -1

Discrete scale tint

Code
  aa <- ggplot2::ggplot_build(s)
Condition
  Error in `extract_pal()`:
  ! `palette` does not match any given palette
Code
  p + scale_fill_hypso_tint_d(alpha = -1)
Condition
  Error in `scale_fill_hypso_tint_d()`:
  ! `alpha` -1 not in [0,1]
Code
  p + scale_fill_hypso_tint_d(direction = -12)
Condition
  Error in `scale_fill_hypso_tint_d()`:
  ! `direction` must be 1 or -1

Continous scale

Code
  p + scale_fill_hypso_c(alpha = -1)
Condition
  Error in `scale_fill_hypso_c()`:
  ! `alpha` -1 not in [0,1]
Code
  p + scale_fill_hypso_c(direction = 0.5)
Condition
  Error in `scale_fill_hypso_c()`:
  ! `direction` must be 1 or -1

Continous scale tint

Code
  p + scale_fill_hypso_tint_c(palette = "x")
Condition
  Error in `scale_fill_hypso_tint_c()`:
  ! `palette` "palette" does not match any given palette. See `?tidyterra::hypsometric_tints_db()`
Code
  p + scale_fill_hypso_tint_c(alpha = -1)
Condition
  Error in `scale_fill_hypso_tint_c()`:
  ! `alpha` -1 not in [0,1]
Code
  p + scale_fill_hypso_tint_c(direction = -12)
Condition
  Error in `scale_fill_hypso_tint_c()`:
  ! `direction` must be 1 or -1

Breaking scale

Code
  p_init + scale_fill_hypso_b(alpha = -1)
Condition
  Error in `scale_fill_hypso_b()`:
  ! `alpha` -1 not in [0,1]
Code
  p + scale_fill_hypso_b(direction = 0.5)
Condition
  Error in `scale_fill_hypso_b()`:
  ! `direction` must be 1 or -1

Breaking scale tint

Code
  p + scale_fill_hypso_tint_b(palette = "x")
Condition
  Error in `scale_fill_hypso_tint_b()`:
  ! `palette` "palette" does not match any given palette. See `?tidyterra::hypsometric_tints_db()`
Code
  p + scale_fill_hypso_tint_b(palette = "x")
Condition
  Error in `scale_fill_hypso_tint_b()`:
  ! `palette` "palette" does not match any given palette. See `?tidyterra::hypsometric_tints_db()`
Code
  p + scale_fill_hypso_tint_b(alpha = -1)
Condition
  Error in `scale_fill_hypso_tint_b()`:
  ! `alpha` -1 not in [0,1]
Code
  p + scale_fill_hypso_tint_b(direction = -12)
Condition
  Error in `scale_fill_hypso_tint_b()`:
  ! `direction` must be 1 or -1

Palettes

Code
  hypso.colors(20, "xx")
Condition
  Error in `extract_pal()`:
  ! `palette` does not match any given palette

Palettes2

Code
  hypso.colors2(20, "xx")
Condition
  Error in `extract_pal()`:
  ! `palette` does not match any given palette


dieghernan/tidyterra documentation built on Feb. 20, 2025, 4:18 p.m.