Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: Help with Graphs


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: Help with Graphs
Date   Wed, 22 Dec 2004 04:38:54 -0600

Beyond the texts, another good way to learn the graphing commands is through
the GUI dialogue boxes.  For example, if you did a simple line plot you
would see pull-down menus for line colors and line patterns which would lead
you to the -clcolor()- and -clpat()- options.

The legend can be a little tricky, if you don't know what to look for.  In
[G] legend_option the -order()- sub option can be used to override the
default legend keys.  So, one way would be:

twoway function y = 0.35299 + 0.692*x, range(0 .461) || ///
function y = 0.96888 - 0.644*x, range(.461 1) || /// 
function y = 0.316 + 1.248*x - 1.301*x^2 , range(0 1) ///
|| scatter q erc, legend(order(1 "Regime" 3 "Quadratic"))

Hope this helps,

Scott


> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Cameron Hooper
> Sent: Tuesday, December 21, 2004 10:45 PM
> To: [email protected]
> Subject: Re: st: RE: Help with Graphs
> 
> Thanks Scott. I've run your code and the graph is starting to take
> shape. I will read the sections of [G] you recommend. Looking at the
> graph so far my main issues will be:
> 
> 1. How to make the line style for the "regime switching" regression the
> same. At the moment it is solid in the positive sloping region and
> dashed in the negative.
> 
> 2. At the moment the graph produces 4 legend entries. I will want to
> reduce these to just two. I expect the only tricky one will be
> preventing the RW regression showing up twice as it does now.
> 
> But I should do some reading first myself :-) Thanks again.
> 
> Cameron
> 


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index