Hello all,
I'd like to have a scatterplot with a "Max Ratio" and "Min Ratio" per sector (e.g. Agriculture Forestry etc), but with the two points (per sector). To give you a better idea of what I want, I've uploaded what my current twoway scatterplot looks like. Firstly, I'd like the 'x' axis to reflect the different categories (Agriculture, Forestry etc.). Secondly, I'd like for the two points per sector to be underneath each other. So for example, the red dots represent the Wholesale & Retail Sector., but they are far away from each other. I'd like them to be vertically in line with each other.
Data structure is the following (agriculture and forestry don't have a second line because they have one minimum wage for the entire sector). Also I don't have any values under "ratio" because I simply want the graph to show the values of the different 'x' variables.
My coding is as follows:

I'd like to have a scatterplot with a "Max Ratio" and "Min Ratio" per sector (e.g. Agriculture Forestry etc), but with the two points (per sector). To give you a better idea of what I want, I've uploaded what my current twoway scatterplot looks like. Firstly, I'd like the 'x' axis to reflect the different categories (Agriculture, Forestry etc.). Secondly, I'd like for the two points per sector to be underneath each other. So for example, the red dots represent the Wholesale & Retail Sector., but they are far away from each other. I'd like them to be vertically in line with each other.
Data structure is the following (agriculture and forestry don't have a second line because they have one minimum wage for the entire sector). Also I don't have any values under "ratio" because I simply want the graph to show the values of the different 'x' variables.
Code:
ratio agriculture forestry domesticworkers privatesecurity wholesaleandretail taxisector hospitality contractcleaners .39 .38 . 3 .85 1 .42 .46 .48 .25 .29 .37 .3 .41 .44
Code:
twoway (scatter ratio agriculture forestry domesticworkers privatesecurity wholesaleandretail taxisector hospitality contractcleaners)
Comment