Skip to content

Commit

Permalink
feat: moved the colors variable before the conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
GeraldineGomez committed Feb 14, 2024
1 parent f538096 commit 93322dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/theme_sivirep.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ tema_sivirep <- function() {
obtener_estetica_escala <- function(escala = 0, nombre) {
colores <- c("#2274BB", "#5ab4ac", "#d8b365", "#AC6DAD", "#D49392",
"#19AFE5", "#87C762", "#9DB2D0")
colores <- colores[1:escala]
if (escala > 0) {
colores <- colores[1:escala]
relleno_escala <- ggplot2::scale_fill_manual(values = colores,
name = nombre)
}
Expand Down

0 comments on commit 93322dc

Please sign in to comment.