These functions are deprecated. Please use
scale_color_manual(values = tntp_palette(palette_name))
or
scale_fill_manual(values = tntp_palette(palette_name))
instead.
Usage
scale_colour_tntp(palette = palette_names, ...)
scale_color_tntp(palette = palette_names, ...)
scale_fill_tntp(palette = palette_names, ...)
Examples
library(ggplot2)
library(dplyr)
#>
#> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’:
#>
#> filter, lag
#> The following objects are masked from ‘package:base’:
#>
#> intersect, setdiff, setequal, union
x <- mtcars |>
count(cyl, am) |>
mutate(am = as.factor(am))
ggplot(x, aes(x = cyl, y = n, fill = am)) + # you need a fill aesthetic
geom_col() +
scale_fill_manual(values = tntp_palette())