tests/testthat/_snaps/scales-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
  ggplot2::ggplot_build(perr)
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 = 0.5)
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
  perr <- p + scale_fill_hypso_tint_c(palette = "aa")
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 = 0.5)
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
  perr <- p + scale_fill_hypso_tint_b(palette = "aa")
Condition
  Error in `scale_fill_hypso_tint_b()`:
  ! `palette` "palette" does not match any given palette. See `?tidyterra::hypsometric_tints_db()`
Code
  p_init + 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 = 0.5)
Condition
  Error in `scale_fill_hypso_tint_b()`:
  ! `direction` must be 1 or -1

Palette2

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

Discrete scale col

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

Discrete scale col tint

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

Continous scale col

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

Continous scale col tint

Code
  perr <- p + scale_color_hypso_tint_c(palette = "aa")
Condition
  Error in `scale_color_hypso_tint_c()`:
  ! `palette` "palette" does not match any given palette. See `?tidyterra::hypsometric_tints_db()`
Code
  p + scale_colour_hypso_tint_c(alpha = -1)
Condition
  Error in `scale_colour_hypso_tint_c()`:
  ! `alpha` -1 not in [0,1]
Code
  p + scale_colour_hypso_tint_c(direction = 0.5)
Condition
  Error in `scale_colour_hypso_tint_c()`:
  ! `direction` must be 1 or -1

Breaking scale col

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

Breaking scale col tint

Code
  perr <- p + scale_colour_hypso_tint_b(palette = "aa")
Condition
  Error in `scale_colour_hypso_tint_b()`:
  ! `palette` "palette" does not match any given palette. See `?tidyterra::hypsometric_tints_db()`
Code
  p_init + scale_colour_hypso_tint_b(alpha = -1)
Condition
  Error in `scale_colour_hypso_tint_b()`:
  ! `alpha` -1 not in [0,1]
Code
  p + scale_colour_hypso_tint_b(direction = 0.5)
Condition
  Error in `scale_colour_hypso_tint_b()`:
  ! `direction` must be 1 or -1


Try the tidyterra package in your browser

Any scripts or data that you put into this service are public.

tidyterra documentation built on March 11, 2026, 9:08 a.m.