To draw a spine plot in Stata you first need to download the spineplot command from the SSC. To do this use the following command in Stata:
ssc install spineplot

To generate the above graph, use the following commands in Stata:
sysuse auto, clear
spineplot foreign rep78, percent