Wednesday, August 3, 2022

How to modify individual graph's title on combined graph

Dear Stata users,
Suppose we have a combined graph that is composed of two individual graphs, let's say them left panel and right panel. Now I want to modify titles of the two panels. How can I achieve? Thank you.
Code:
sysuse auto
twoway connected price mpg, sort name(graph1) title(Title of Graph 1)
twoway connected weight mpg, sort name(graph2) title(Title of Graph 2)
graph combine graph1 graph2, name(graph3)
Array

No comments:

Post a Comment