mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 12:37:30 +02:00
plots new accept pri, sec and ter arguments instead of x,y,z to avoid confusion. tests, tests, tests
This commit is contained in:
parent
e463fa0670
commit
652a8ca1b7
28 changed files with 3275 additions and 179 deletions
23
tests/testthat/_snaps/contrast_text.md
Normal file
23
tests/testthat/_snaps/contrast_text.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Contrasting works
|
||||
|
||||
Code
|
||||
contrast_text(colors)
|
||||
Output
|
||||
[1] "black" "white" "white" "white" "black" "white"
|
||||
|
||||
---
|
||||
|
||||
Code
|
||||
contrast_text(colors, light_text = "blue", dark_text = "grey10", method = "relative",
|
||||
threshold = 0.1)
|
||||
Output
|
||||
[1] "grey10" "blue" "grey10" "blue" "grey10" "grey10"
|
||||
|
||||
---
|
||||
|
||||
Code
|
||||
contrast_text(colors, light_text = "blue", dark_text = "grey10", method = "perceived",
|
||||
threshold = 0.7)
|
||||
Output
|
||||
[1] "grey10" "blue" "blue" "blue" "grey10" "blue"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue