Generates colorsets with 2 or 3 predefined colors. These are useful when making plots with that many different groups. There is 12 different sets for both line and area type of plots. 6 of them is for colors pairs and 6 of them is for color triples.

colorset_thl(set, n, set_id = 1)

Arguments

set

Name of the color set. Options: area/pinta or line/viiva

n

Number of colors in set. Options: 2 or 3

set_id

Identifier of set, numercal value 1-6.

Examples

colorset_thl("area", 2)
#> [1] "#519b2f" "#7bc143"
colorset_thl("area", 3, 2)
#> [1] "#2f62ad" "#29a0c1" "#cc77ac"
colorset_thl("line", 2)
#> [1] "#519b2f" "#2f62ad"