Hi everyone,
I've made some scatter plots and I'd like to adjust the maximum value on the x-axis. Now it ranges from 0-60 and I want to make it narrower; 0-40 for example. This means that some data will be omitted from the plot. Therefore I don't think I can use the x(range) option.
I think using this is the solution:
Or should i use x(label) or x(scale)? And where exactly do I put this in my syntax (since I am also using a lowess)?
This is the syntax for my scatter:
I hope you can help me out!
Cheers,
Lisanne
I've made some scatter plots and I'd like to adjust the maximum value on the x-axis. Now it ranges from 0-60 and I want to make it narrower; 0-40 for example. This means that some data will be omitted from the plot. Therefore I don't think I can use the x(range) option.
I think using this is the solution:
Code:
scatter yvar xvar if xvar >=10 & xvar <=50
This is the syntax for my scatter:
Code:
twoway (scatter z_wfa age_months if use_tdf_preg==0, msymbol(circle_hollow) mcolor(gs2))(lowess z_wfa age_months if use_tdf_preg==0, msymbol(circle_hollow) lcolor(black) lpattern(dash) lwidth(medthick))(scatter z_wfa age_months if use_tdf_preg==1, msymbol(triangle) mcolor(gs5))(lowess z_wfa age_months if use_tdf_preg==1, msymbol(triangle) lcolor(black) lwidth(medthick))
Cheers,
Lisanne
Comment