Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Combining graph with the same scale


From   David Ashcraft <ashcraftd@rocketmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Combining graph with the same scale
Date   Mon, 10 Jun 2013 00:12:01 -0700 (PDT)

Sergiy, thanks a lot. This did not work. As the first graph shows legends but in not in sync with other graphs. I am looking for only one set of legends at the bottom of the table of graphs. Below is the set of commands that I have used:

graph twoway line  thresh_fin dbt2asst dbt2mkt_36 dbt2mkt_24 date1 if id==301,
title("Canadian Natural Resources") legend( order(1
"Threshhold" 2 "MSCI & FTSE" 3 "S&P" 4
"Dow Jones") )
graph display, scheme(s2color8)
graph save Graph "D:\Ppr2\CNR.gph", replace
graph twoway line  thresh_fin dbt2asst dbt2mkt_36 dbt2mkt_24 date1 if id==708,
title("Intertek Group Plc")legend(off)
graph display, scheme(s2color8)
graph save Graph "D:\Ppr2\intertek.gph", replace
graph twoway line  thresh_fin dbt2asst dbt2mkt_36 dbt2mkt_24 date1 if id==997,
title("NTT Data Communications Systems") legend(off)
graph display, scheme(s2color8)
graph save Graph "D:\Ppr2\NTT.gph", replace
graph twoway line  thresh_fin dbt2asst dbt2mkt_36 dbt2mkt_24 date1 if id==1210,
title("Quanta Services Inc") legend(off)
graph display, scheme(s2color8)
graph save Graph "D:\Ppr2\Quanta.gph", replace
//graph twoway line  thresh_fin dbt2asst dbt2mkt_36 dbt2mkt_24 date1 if id==1222,
title("Range Resources Corp") 
//graph display, scheme(s2color8)
graph twoway line  thresh_fin dbt2asst dbt2mkt_36 dbt2mkt_24 date1 if id==1244,
title("Ricoh Co") legend(off)
graph display, scheme(s2color8)
graph save Graph "D:\Ppr2\Ricoh.gph", replace 
graph twoway line  thresh_fin dbt2asst dbt2mkt_36 dbt2mkt_24 date1 if id==1263,
title("Royal Dutch Shell") legend(off)
graph display, scheme(s2color8)
graph save Graph "D:\Ppr2\SABIC.gph", replace
graph twoway line  thresh_fin dbt2asst dbt2mkt_36 dbt2mkt_24 date1 if id==1272,
title("Saudi Basic Industries") legend(off)
graph display, scheme(s2color8)
graph save Graph "D:\Ppr2\Shell.gph", replace
graph combine "D:\Ppr2\CNR.gph" "D:\Ppr2\intertek.gph"
"D:\Ppr2\Quanta.gph" "D:\Ppr2\Ricoh.gph" "D:\Ppr2\SABIC.gph"
"D:\Ppr2\Shell.gph", ycommon xcommon title(Financial leverage)
commonscheme scale(1)


----- Original Message -----
From: Sergiy Radyakin <serjradyakin@gmail.com>
To: "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Cc: 
Sent: Monday, June 10, 2013 9:28:55 AM
Subject: Re: st: Combining graph with the same scale

David, what are your graphs? I can combine a pie-chart with a
sunflower chart with graph combine. What would be the legend then? If
all the legends are identical, just build the first graph with the
legend and the rest with no legend, then combine. Sergiy

On Mon, Jun 10, 2013 at 2:07 AM, David Ashcraft
<ashcraftd@rocketmail.com> wrote:
> Hi Statalist,
>
> I am trying to combine graph using combine command. The graph are combined well but legends are shown underneath each graph. I can remove legends however I want to have only one main legend to six graphs in the table. Any help will be highly appreciated
> Regards
>
> David Ashcraft
> PhD Candidate
> Bangor University
> UK
> *
> *   For searches and help try:
> *  http://www.stata.com/help.cgi?search
> *  http://www.stata.com/support/faqs/resources/statalist-faq/
> *  http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*  http://www.stata.com/help.cgi?searchhttp://www.stata.com/support/faqs/resources/statalist-faq/http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index