Skip to content
Prev 14741 / 15379 Next

[R-es] GRAFICO DE BARRAS

ENVEZ DE SUM USÉ MEDIAN QUE ES LO QUE ME CONVIENE, GRACIAS!!


library(readxl)
ta <- read_excel("C:/Users/betan/Desktop/presiones.xlsx")
attach(ta)

'

ta %>%
  pivot_longer(cols = names(ta)) %>%
  group_by(name) %>%
  summarise(median(value)) %>%
  ungroup() %>%
  mutate( valor = `median(value)`) %>%
  ggplot() +
  geom_bar(aes(y = valor, x = name, fill = name), stat = 'identity')







El 9/5/22, Juan Abasolo <juan.abasolo en ehu.eus> escribió: