scale_fill_ksnet_discrete | R Documentation |
Paleta discreta de colores de KSNET (fill)
scale_fill_ksnet_discrete(palette = "classic", reverse = FALSE, ...)
palette |
El nombre de la paleta ("classic", "bright") |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Argumentos adicionales |
library(ggplot2)
library(dplyr)
x <- c("A","B","C","D")
y <- c(5, 8, 12,15)
mis_datos <- data.frame(variable = x, valor = y)
mis_datos %>%
ggplot(aes(x = variable, y = valor, fill = variable)) +
geom_col() +
scale_fill_ksnet_discrete() +
theme_ksnet()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.