Jul 22, 2017

Random graphs (104): Sunflower plot

// Open Allbus data
use v614 v301 using  "C:\Users\User\Dropbox\methods and data\allbus\ZA4612_v1-0-1.dta", clear

// Prepare variables
recode v301 (999 = .), gen(age)
label var age "Age"
recode v614 (99997 99999 = .), gen(personal_income)
label var personal_income "Personal net income in Euro"

// Sunflower plot
sunflower personal_income age, legend(pos(11) ring(0) size(*.9)) ///
          note(" " "{it:Source:} German General Social Survey Allbus 2010, doi:10.4232/1.11782", span)