Hello,
I want to combine 2 or more graphs/plots [scatter plots, box plots, OLS regression lines, etc.] that show one common y-axis instead of replicating the y-axis for each graph.
eg. I tried:
graph box var1, saving(boxplot1.gph)
graph box var1, over(group) saving(boxplot2.gph)
gr combine boxplot1.gph boxplot2.gph
It did combine the 2 boxplots but with 2 y-axes with exactly the same scales. How to show just one y-axis for both plots?
I searched the Stata commands and the web but can't find what I want.
Are there commands or coding convention to combine graphs and display just one common y-axis - not just for box plots but other types of graphs as well?
Thanks in advance.
Regards,
Benjamin
I want to combine 2 or more graphs/plots [scatter plots, box plots, OLS regression lines, etc.] that show one common y-axis instead of replicating the y-axis for each graph.
eg. I tried:
graph box var1, saving(boxplot1.gph)
graph box var1, over(group) saving(boxplot2.gph)
gr combine boxplot1.gph boxplot2.gph
It did combine the 2 boxplots but with 2 y-axes with exactly the same scales. How to show just one y-axis for both plots?
I searched the Stata commands and the web but can't find what I want.
Are there commands or coding convention to combine graphs and display just one common y-axis - not just for box plots but other types of graphs as well?
Thanks in advance.
Regards,
Benjamin
Comment