Dear Statalist,
I am trying to generate and export twoway scatter plot by GroupID (one plot for one GroupID). My x-axis is cost data and my y-axis is date data. I want each graph only contains data correspond to the GroupID.
My current code is:
I got the following error
Not sure what is wrong with my code and not sure if my code can generate graphs that I want. Any comment will be appreciated.
Thanks!
I am trying to generate and export twoway scatter plot by GroupID (one plot for one GroupID). My x-axis is cost data and my y-axis is date data. I want each graph only contains data correspond to the GroupID.
My current code is:
Code:
sum GroupID, meanonly global groupmax `r(max)' forvalues i = 1/$groupmax { twoway scatter Cost DateYM, by(GroupID) graph export "graph/GroupIDplot'", replace }
output file suffix not recognized
Specify correct suffix or specify as() option.
Specify correct suffix or specify as() option.
Thanks!
Comment