Nothing
test_that("palette_this works with named palcolor (pwwang/scplotter#12)", {
colors <- palette_this(
c("a", "b", "c"),
palette = "Paired",
palcolor = c("c" = "red", "b" = "blue", "a" = "green")
)
colors <- as.list(colors)[sort(names(colors))]
expect_equal(colors, list(a = "green", b = "blue", c = "red"))
})
test_that("palette_this works with named palcolor but missed items", {
colors <- palette_this(
c("a", "b", "c"),
palette = "Paired",
palcolor = c("b" = "blue", "a" = "green")
)
expect_equal(colors, c(a = "green", b = "blue", c = "#B2DF8A"))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.