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

RE: st: multiline value label in a -catplot- graph


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: multiline value label in a -catplot- graph
Date   Wed, 3 Mar 2004 17:20:46 -0000

Indeed. Thanks to Nick Winter for pointing this 
out. Please note that you may need to reinstall -catplot- 
for this to work, and that it only works with one 
variable. 

I'd use -catplot hbar- to avoid this need. 

Nick 
n.j.cox@durham.ac.uk 

Nick Winter
 
> -catplot- appears to have an undocumented option, 
> -oversubopts()-, that 
> allows you to specify options for the over() variable--which 
> is catvar1 in 
> your example.
> 
> So you can do:
> 
> catplot bar rep78 , percent ///
>        oversubopts( relabel( 1 `" "Strongly" "Disagree" "' ///
>        2 `" Disagree "' ///
>        3 `" "Neither" "Agree nor" "Disagree" "' ///
>        4 `" Agree "' ///
>        5 `" "Strongly" "Agree" "'))
> 
> If those labels are already value labels for your categorical 
> variable, 
> then my program -splitvallabels- from SSC will automate the 
> process of 
> creating the relabel() option.
> 
> --Nick Winter
> 
> At 12:59 AM 3/4/2004 +0900, you wrote:
> >Dear fellows,
> >
> >Does anyone know how to create multiline value labels in a -catplot-
> >graph? I am interested in making a graph similar to the following:
> >
> >. catplot bar catvar1, percent
> >              ___       ___
> >    ___       |  |      |  |      ___       ___
> >    |  |      |  |      |  |      |  |      |  |
> >--------------------------------------------------
> >  Strongly  Disagree  Neither    Agree    Strongly
> >  Disagree           Agree nor             Agree
> >                     Disagree
> >
> >---
> >UENOHARA Hideaki, LL.M. <uhideaki@td6.so-net.ne.jp>
> >  Doctoral Student, Graduate School of Law and Politics,
> >  The University of Tokyo

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index