Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | njcoxstata@gmail.com |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: xtick |
Date | Thu, 12 Sep 2013 06:37:01 +0100 |
Check out -recode-. Nick njcoxstata@gmail.com On 11 Sep 2013, at 18:35, "Valle, Giuseppina" <gvalle@prc.utexas.edu> wrote: > Thanks, but even when I use " xtick(1 2 3 4) xla(1/4, val)" I still get the labels out of order on the x axis. It currently has: > > Normative Early Late Never, which correspond with 1 2 3 4 > > But I want it to appear: > > Early Normative Late Never, which correspond with 2 1 3 4 > > Thanks, > Pina > > -----Original Message----- > From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of njcoxstata@gmail.com > Sent: Wednesday, September 11, 2013 11:36 AM > To: statalist@hsphsun2.harvard.edu > Subject: Re: st: xtick > > Sounds as if you want -xla(1/4, val)- > > Nick > njcoxstata@gmail.com > > On 11 Sep 2013, at 16:42, "Valle, Giuseppina" <gvalle@prc.utexas.edu> wrote: > >> Hello. I am graphing the following: >> >> marginsplot, title("Timing ") /// >> xtick(1 2 3 4) /// >> ytitle("Relationship Conflict") >> >> However, is it possible to have the xtick be reordered? Since I have labels= attached to these, I want it to actually show up as "2 1 3 4" on my x-axis= . Is this possible? I tried using "xtick(2 1 3 4)," but that didn't seem to= work. > > * > * 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?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?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/