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: angle for text in graph


From   Scott Merryman <[email protected]>
To   [email protected]
Subject   Re: st: angle for text in graph
Date   Wed, 12 Jun 2013 09:21:52 -0500

I think you will have to wrap each character in quotes:

slideplot hbar rep78, neg(1 2 3) pos(4 5) by(foreign) percent ///
legend(subtitle("FIM Scale") span cols(7))  ///
ytitle("Percent of the population with these scores") ///
 title("AdmissionFIM_Comprehension") ///
  l2("I" "m" "p" "a" "i" "r" "m" "e" "n" "t" " " "G" "r" "o" "u" "p"
"s", orient(h) size(*.8) )


Scott




On Wed, Jun 12, 2013 at 8:35 AM, Richard Goldstein
<[email protected]> wrote:
> Hi all,
>
> in using Nick Cox's -slideplot- command (from SSC), I am attempting to
> add text on the far left and, if possible, I would like that text to be
> vertical (explained below)
>
> as an example, here is code using Stata's auto data set:
>
> slideplot hbar rep78, neg(1 2 3) pos(4 5) by(foreign) percent
> legend(subtitle("FIM Scale") span cols(7)) ytitle("Percent of the
> population with these scores") text(-143 50 "Impairment Groups",
> orient(vertical) align(middle) size(medium) angle(vertical))
> title("AdmissionFIM_Comprehension")
>
> This may be a little confusing as I have changed as little as I could
> get away with; most of the text deals with a medical example using the
> Functional Independence Measure (FIM), widely used in rehab hospitals in
> the US (and some other countries); the text I am concerned with here is
> "Impairment Groups" which I would like to look as follows:
>
> I
> m
> p
> a
> i
> r
> m
> e
> n
> t
>
> G
> r
> o
> u
> p
> s
>
> I had thought that the "angle" option would do this, but it has no
> effect (i.e., the graph looks the same without the option as with it and
> continues to look the same whether the anglestyle is given as "vertical"
> or as "horizontal"
>
> any ideas?
>
> Rich
*
*   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/


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