1. Combining Plots
I have the following syntax for my plots:
Code:
twoway (scatter AB_Y Day if Sampletype ==0 & Run==0), play (Template_Background) ylabel(0(0.01)0.03, angle(0) grid) yline(0.02) twoway (scatter CD_Y Day if Sampletype ==0 & Run==0), play (Template_Background) ylabel(0(0.1)0.2, angle(0) grid) yline(0.1) twoway (scatter EF_Y Day if Sampletype ==0 & Run==0), play (Template_Background) ylabel(0(5)15, angle(0) grid) yline(10) twoway (scatter GH_Y Day if Sampletype ==0 & Run==0), play (Template_Background) ylabel(0(0.1)0.3, angle(0) grid) yline(0.2)
Code:
combineplot Day (AB_Y CD_Y EF_Y GH_Y) if Sampletype ==0 & Run==0: scatter @x @y
And how to label the x-axis with only "Day" because right now I get "Day" together with the name of the group (example "Day analyzer Y")?
2. Combining Figures/Images
I have the following loop for my scatter plots (A to Q are analytes in blood samples analyzed in analyzer X and analyzer Y):
Code:
putdocx begin putdocx paragraph #delimit ; putdocx text ("Scatter plots of the A-Q analyzed in the X and Y analyzers."); #delimit cr foreach stub in A_ B_ C_ D_ E_ F_ G_ H_ I_ J_ K_ L_ M_ N_ O_ P_ Q_ { aaplot `stub'X `stub'Y, play (Template_aaplot) graph export `stub'1.png putdocx image `stub'1.png } putdocx save Results_XX, replace
0 Response to Need help with combining plots and figures
Post a Comment