Hi Shu,
Your problem here is the lines after your run the command to generate your glucose graph. For the save graph command, Stata just saves whatever graph is in its working memory, regardless of what you are naming it - so when you have the 3 commands to save together like that, “graph save nagraph”, “graph save kgraph”, and “graph save glugraph” after generating your glucose graph, Stata is saving your glucose graph 3 times under these different names. Your save command should only be directly after generating the graph you are trying to save.
As a note, you also don’t need to name the graph and save it; you can just do one or the other.
Hope that helps!
Your problem here is the lines after your run the command to generate your glucose graph. For the save graph command, Stata just saves whatever graph is in its working memory, regardless of what you are naming it - so when you have the 3 commands to save together like that, “graph save nagraph”, “graph save kgraph”, and “graph save glugraph” after generating your glucose graph, Stata is saving your glucose graph 3 times under these different names. Your save command should only be directly after generating the graph you are trying to save.
As a note, you also don’t need to name the graph and save it; you can just do one or the other.
Hope that helps!