Thanks Martin! This solution is what i was looking for!
robert
On Sat, Dec 19, 2009 at 4:52 PM, Robert Duval <[email protected]> wrote:
> I thank both Maarten and Alan for the solutions they proposed.
> However, I need to avoid inserting texts by the axes.
>
> The problem is that my reference lines are close enough to make the
> label texts illegible, even if I were to send one of them to the top
> axis as suggested.
>
> This was indeed the original reason for me looking for a solution
> involving legends (which allow much more flexible texts).
>
> I guess I'll play around with pointing arrows and texts inserted at
> arbitrary places in the graph, however, if anyone has a solution
> involving legends it will be much appreciated.
>
> greetings and thanks again,
> robert
>
> On Sat, Dec 19, 2009 at 12:48 AM, Robert Duval <[email protected]> wrote:
>> Dear friends,
>>
>> I have a graph with several vertical reference lines (i.e. xline(#1 #2
>> etc)) each with different line pattern styles. Is there a way to
>> create a legend to indicate what each reference line means ?
>>
>> My command is
>>
>> kdensity var , xline(6.1,lp(solid)) xline(12.22,lp(dash)) xline(18.33,
>> lp(shortdash))
>>
>> Any help will be greatly appreciated
>> robert
>>
>
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/