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 Winter <nw53@cornell.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: multiline value label in a -catplot- graph
Date   Wed, 03 Mar 2004 11:37:19 -0500

-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/
--------------------------------------------------------
Nicholas Winter 607.255.8819 t
Assistant Professor 607.255.4530 f
Department of Government nw53@cornell.edu e
308 White Hall falcon.arts.cornell.edu/nw53 w
Cornell University
Ithaca, NY 14853-4601
*
* 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