Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: xtline line appearances


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: xtline line appearances
Date   Tue, 3 Jan 2012 19:00:40 +0000

I don't know why you tried that syntax: you're just guessing! The help
for -xtline- implies that your syntax should replace

lp(1 solid) lw(1 medthick) lc(1 black) ///
lp(2 dash) lw(2 medthick) lc(2 black) ///
lp(3 dot) lw(3 medthick) lc(3 black)

with

plot1opts(lp(solid) lw(medthick) lc(black)) ///
plot2opts(lp(dash) lw(medthick) lc(black)) ///
plot3opts(lp(dot) lw(medthick) lc(black))

Nick

On Tue, Jan 3, 2012 at 5:52 PM, Kim Peeters <kimpeeters84@yahoo.com> wrote:

> I have a question regarding xtline. I would like to change the appearance of the three different panel-data lines.
>
>
> xtline count, overlay xscale(range(1995 2009)) xlabel(1995(2)2009) ylabel(,angle(horizontal)) ///
> ytitle("Number of Games") legend(on ring(0) pos(11) col(1)) xtitle("Year") ///
> lp(1 solid) lw(1 medthick) lc(1 black) ///
> lp(2 dash) lw(2 medthick) lc(2 black) ///
> lp(3 dot) lw(3 medthick) lc(3 black)
>
>
>
> Unfortunately, I always receive an error message.
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index