The #30DayMapChallenge 2022 starts tomorrow. In the last 2 years a lot of work has been put in @Stata to mainstream some of the map elements we find in other softwares. He is a 🧵 on the different types of maps one can make. If you want the code for any, just msg! Let's go 👇
The basic #spmap package can already do a lot! Here are some examples using standard spmap syntax.
These were made for the online #GIS tutorials earlier this year that were fairly well attended! Over 1400+ registrations and 500+ ppl online. Might repeat it again.
The #bimap package that actually was the result of the #30DayMapChallenge last year allows you to combine two variables to check for interesting spatial correlations.
Clip your polygons however you want! Rectangles, squares, or any other regular polygon shape.
Zoom in to the regions!
There are also several guides written in the past years to completely rework how maps are made. For example the #OpenStreetMaps to @Stata guide shows how to get the layers in Stata:
Some more examples from the challenge last year that use this:
One is also not confined to actual maps. Maps can also be made in a lot of other ways. Here are examples of #joyplots, #scatter plots, #tilemaps.
For these, data is usually extracted from rasters and other layers and plotted. Africa/USA tilemap guides: medium.com/the-stata-guid…
Here is a classic one from 2 years ago for the #DuBoisChallenge that got my started on maps in #Stata.
This was the first complete fully customized map replication in #Stata. You can fine more on this here: github.com/asjadnaqvi/DuB…
There are really cool packages out there as well. For example #getcensus allows direct access to ACS data. See detailed thread here on how to pull the data and map it:
where 20 of the 30 maps were made in @Stata. Here is one of my fav ones. Any animation that color blends across months and years to show the Antarctica ice sheet extent.
Some more map-related #Stata content will be released this month + early 2023, so stay tuned!
1/ The #WorldBank's #SDG atlas covers each #SDG goal in detail with some great datavizzes inside each of them. Check it out! Really a lot of effort went into this.
A late night 🧵 on some tips for making grayscale (BW) & colorblind (cblind) friendly graphs in @Stata. BW in case people print out papers, and cblind to make sure documents are "barrier free".
Graphs have 3 elements that we can control: colors, line patterns, & symbols.
Let's start with colors: Whatever color scheme we use, we can check whether it will pass the BW and cblind tests. This can be easily tested using the palettes package. Install these, if you haven't already:
There are three types of common color-blindnesses that can we can check in #Stata: "Protanopia" & "Deuteranopia" where shades of red and green are not discernable, & "Tritanopia" where blue-green, purple-red, yellow-pink are hard to differentiate.