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
[email protected]
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. <[email protected]>
> > 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/