Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Combining sets of graphs with common legend

    I am trying to combine three sets of 2 graphs and keep one of the legends (6 graphs in total). f_distributions_sat_m, f_distributions_sat_v and f_distributions_sat_w each corresponds to a set of graphs with one legend, which were previously generated using the grc1leg command.

    I am now trying this specification with the goal of keeping one common legend across the three combined graphs:

    Code:
    grc1leg2 f_distributions_sat_m  f_distributions_sat_v f_distributions_sat_w, ///
    legendfrom(f_distributions_sat_m)  xsize(8) ysize(12) row(3)   ///
                    name(graph1, replace)
    I am getting the following error message:

    The legend is of more than one type. This error should never occur.
    invalid syntax
    r(198);

    (all three graphs have the same legend)

    I tried using grc1leg as well and it runs, but the xsize() and ysize() options do not seem to work with this command.

    Also, I know I could combine the 6 graphs using grc1leg2 but I want to have a centered subtitle for each set of two graphs. It doesn't seem possible to do this when combining the 6 graphs independently.

    Any ideas on how to produce this graph are very welcome. Thank you!




Working...
X