I am trying to combine three graphs in a single png file, so that the first two are in the first row, and the third one is in the second row. I use the following code:
Code:
graph bar reliability, over(group) name(reliability, replace) asyvars ytitle("") title(reliability) graph bar informativeness, over(group) name(informativeness, replace) asyvars ytitle("") title(informativeness) graph bar headline_ok, over(group) name(headline_ok, replace) asyvars ytitle("") title(headline_ok) graph combine reliability informativeness, rows(1) name(row1, replace) graph combine headline_ok, rows(1) name(row2, replace) graph combine row1 row2, cols(1)
Array
Following a suggestion provided in this thread, I include "aspect(1)" when generating each graphs:
Code:
graph bar reliability, over(group) name(reliability, replace) asyvars ytitle("") title(reliability) aspect(1) graph bar informativeness, over(group) name(informativeness, replace) asyvars ytitle("") title(informativeness) aspect(1) graph bar headline_ok, over(group) name(headline_ok, replace) asyvars ytitle("") title(headline_ok) aspect(1) graph combine reliability informativeness, rows(1) name(row1, replace) graph combine headline_ok, rows(1) name(row2, replace) graph combine row1 row2, cols(1)
Array
Do you know what might cause the problem?
Vincenzo
0 Response to Problem with Graph Combine
Post a Comment