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]
st: AW: AW: Graph xlabel with two or more rows
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
st: AW: AW: Graph xlabel with two or more rows
Date
Mon, 24 May 2010 18:04:58 +0200
<>
As in:
*************
sysuse auto, clear
graph box price, over(foreign, relabel(1 `""Domestic" "Cars""' 2 `""Foreign"
"Cars""'))
*************
Note the numbers do not map to the numeric codes used for "foreign" (which
are 0 and 1), but merely count from 1.
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Martin Weiss
Gesendet: Montag, 24. Mai 2010 18:01
An: [email protected]
Betreff: st: AW: Graph xlabel with two or more rows
<>
Take a look at -help graph_bar-:
" Relabeling the values does not change the order in which the bars are
displayed.
You may create multiple-line labels by using quoted strings within
quoted strings:
over(varname, relabel(1 `" "Male" "patients" "'
2 `" "Female" "patients" "'))"
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Erik Holmberg
Gesendet: Montag, 24. Mai 2010 17:46
An: [email protected]
Betreff: st: Graph xlabel with two or more rows
I have a question about how to get text with two rows for the x-axis label.
If I use
xlabel(1 "Low" 2 "Med" 3 "Hi")
I change the labels to these labels but if I for each label want two rows of
text, how to do.
If I use the Graph Editor I can get two rows if I edit individual labels and
choose:
1 "Low" "Risk"
2 "Med" "Risk"
3 "Hi" "Risk"
But I would prefer to have it in the graph command instead of using the
Graph Editor.
Erik Holmberg
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/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/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/statalist/faq
* http://www.ats.ucla.edu/stat/stata/