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

st: RE: Scatter plot: Getting read of the x title and the numbers behind


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Scatter plot: Getting read of the x title and the numbers behind
Date   Fri, 13 Aug 2004 15:44:27 +0100

I am new to STATA and to  STATALIST.

>>> Welcome to Stata and to Statalist. Please don't send MIME/HTML to 
the list, as explained in the FAQ (URL below). 

I am trying to make a few graphs 

THis statement:

twoway (scatter cd4_cells mdcd4 lci_cd4 uci_cd4 group1, legend(off) msymbol(o d dh dh) mcolor (gray black black black)  msize(small)), 
ytitle(CD4 cells %) ylabel(0 20:100)  xtitle ()   xlabel(# 5 1 "HIV- HCV-" 2 "HIV+ HCV cleared" 3 "HIV+ HCV chronic" 4 "HIV- HCV cleared" 5 "HIV- HCV chronic", labsize(small))

Gives me a plot with a title under the x axis (group1) that I don't want,  

>>> Blank it out with -xtitle("")- 

and the numbers 1-5 hidden behind the x label.
Would like to know how to get read of the label and the 1-5.

>>> To get rid of the 1-5, delete "#5". 

Also- I would like to know how to split the labels so instead of having 
HIV+ HCV cleared in one line I have
HIV+
HCV
cleared 
in 3 lines.

xla(1 `""HIV-" "HCV-""' 2 `""HIV+" "HCV" "cleared"" etc. 

That is e.g. 

1    number 
`"   left single quote/double quote 
"HIV-"  first line in "" 
"HCV-"  second line in "" 
"'   double quote/right single quote 

The `" "' are called compound double quotes. 

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