Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
OliviaLorente-Casalini authored May 30, 2024
1 parent 746a7a5 commit 4e68806
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts_texto_nota.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ penguins_df_mean_long_str <- penguins_df_mean_long
penguins_tb_mean_long_str_for <- penguins_tb_mean_long_str |>
mutate(species = fct_relevel(species, c("Chinstrap", "Adelie", "Gentoo")))

# fct_relevel() no altera directamente el orden de los niveles en la tabla,
# si no que los reordena internamente para determinados procesos, como por
# ejemplo, una mejor visualizacion en los graficos

# R base
penguins_df_mean_long_str$species <- factor(penguins_df_mean_long_str$species,
levels = c("Chinstrap", "Adelie", "Gentoo"))
Expand Down

0 comments on commit 4e68806

Please sign in to comment.