Visualizing attendance in Flamengo's away matches
Thanks to Base dos Dados I could easily download data from 2018 onwards:
df <- basedosdados::read_sql("SELECT ano_campeonato, data, rodada, estadio,
publico, time_man, time_vis, colocacao_man,
publico_max, colocacao_vis
from basedosdados.mundo_transfermarkt_competicoes.
brasileirao_serie_a
WHERE ano_campeonato > 2017")
For each club
Likewise, Flamengo attendance is defined as the average attendance in their home matches which Flamengo is the visiting team:
Finally, ratio measures how greater is the attendance in Flamengo matches:
Important: such period is influenced by the Covid-19 pandemics. I filtered out those matches with zero attendance, but others happened under public restrictions, mainly in 2021.
In order to control for year (


