79467736

Date: 2025-02-25 20:02:20
Score: 1.5
Natty:
Report link

I got it, for future reference:

p <- ggplot(df, aes(x = Year, y = Average, color = code)) +
  geom_point(aes(size=3, alpha=0.8,group = seq_along(Year))) +  # Adiciona os pontos
  geom_line(aes(y = smooth_values), size = 1) +  # Adiciona as linhas de tendência
  labs(title = "Evolução do Average por Região",
       x = "Ano", y = "Average") +
  theme_minimal() +
  theme(legend.title = element_blank())

The trick was on seq_along(Year) as shown [here][1] on stackoverflow...

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: JPMD