79077942

Date: 2024-10-11 11:12:57
Score: 7.5 🚩
Natty:
Report link

I have a similar problem. I tried to solve it, but I didn't have much success. I'm going to paste my code here to see if you can help me.

tempo_1 <- as.character(Sankey$Tempo_1)
Sankey$Tempo_1 <- factor(Sankey$Tempo_1, levels = tempo_1, labels = tempo_1)
tempo_2 <- as.character(Sankey$Tempo_2)
Sankey$Tempo_2 <- factor(Sankey$Tempo_2, levels = tempo_2, labels = tempo_2)

ggplot(Sankey, aes(axis1 = Tempo_1, axis2 = Tempo_2, y = Valor)) +
  geom_alluvium(aes(fill = Tempo_1)) +
  geom_stratum(aes(fill = NULL), color = NA) +
  geom_text(stat = "stratum", aes(label = after_stat(stratum))) +
  theme_minimal() +
  theme(panel.border = element_blank(), legend.position = "none")
  labs(title = "Important Cytokines in time")

The Graph

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): I have a similar problem
  • RegEx Blacklisted phrase (3): you can help me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have a similar problem
  • Low reputation (1):
Posted by: Rômulo Galvani