Here is a simple R script to download the shape files of Brazilian metropolitan areas by year and plot them in R.
obs. It's important to note that, since the 1988, metro areas are created by state governments. As a rule, this is done with absolutely no transparency nor any technical criteria. It is this legal issue, rather than the urbanization process in the country itself, that led to such an inflated increase in the number of metro areas in the country over the past two decades.
Number of metro areas in Brazil:
1970: 9
2001: 24
2018: 77