Skip to content

Commit

Permalink
fix(plot_tipo_caso): added wrap_text to x-axis labels
Browse files Browse the repository at this point in the history
Ref: #194
  • Loading branch information
GeraldineGomez committed Jul 31, 2024
1 parent 7c22cc0 commit 35ebcca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,10 @@ plot_tipo_caso <- function(data_agrupada,
caption = fuente_data
) +
obtener_estetica_escala(escala = escala, nombre = "Eventos\n") +
ggplot2::scale_x_discrete(labels = etiquetas) +
ggplot2::scale_x_discrete(labels = stringr::str_wrap(
etiquetas,
5
)) +
tema_sivirep()
return(plot_tipo_casos)
}
Expand Down

0 comments on commit 35ebcca

Please sign in to comment.