Browse Source

Plot age par sexe

master
Maxime Wack 7 years ago
parent
commit
e94b59fb35
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      app.R

+ 4
- 2
app.R View File

@@ -186,10 +186,12 @@ server <- function(input, output, session)
output$plot_age <- renderPlot({
data_age() %>%
ggplot() +
aes(x = Age) +
aes(x = Age, fill = Sexe) +
geom_histogram() +
scale_fill_manual(values = c("Homme" = "lightblue", "Femme" = "pink")) +
scale_x_continuous(limits = c(min_age, max_age)) +
theme(axis.title = element_blank())
theme(axis.title = element_blank(),
legend.position = "none")
})
# Map



Loading…
Cancel
Save