Aug 9, 2012

Random graphs (1): Complex scatterplot


#delimit ;
twoway (scatter change2006_10 childcare if time == 2010
                                          & age == 2
                                     & duration == 3,
        mlab(geo2) mlabpos(0) msymbol(i)

     /* Make sure to use mlabpos(0), not mlabpos(central) */
     /* With mlabpos(central), all markers will be slightly off */

        yscale(range(-12 12))), // Slightly rescale y-axis
        xline(30) yline(0)    // Add horizontal and vertical lines
        xtitle("Performance"
           "(% of children under 3 in formal childcare in 2010)")
        ytitle("Progress"
           "(Percentage point change 2006{char 150}10)")
        text(-12 72 "Losing momentum")
        text( 12 70 "Moving further ahead")
        text(-12 10 "Falling further behind")
        text( 12  5 "Catching up")
        title("Progress towards the Barcelona targets,
               2006{c 150}2010")
        subtitle("Children under three years of age")
        note("Data: Eurostat database (ilc_caindformal),
              extraction date Aug 7, 2012", span);
        // 'span' makes sure that the note
        // starts on the very left side
#delimit cr