[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"Nick Cox" <n.j.cox@durham.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: A question about twoway graph |

Date |
Fri, 8 Aug 2008 19:06:25 +0100 |

Please don't send attachments to Statalist. This advice is quite explicit in the FAQ. Many members can't handle them and attachments just create large digital messes in the daily digest. Sending attachments is thus anti-social. On your question, it appears that some of your data are negative, so that is why your graph shows some negative values. One remedy is not to plot such data. If your question is purely about axis labels, then you can do things like ... yla(-1 "1" -0.5 "0.5" 0 0.5 1) Nick n.j.cox@durham.ac.uk Albert Newton I am trying to plot the propensity score for treatment and comparison group in one graph. So I use this command twoway `vlist0' (rbar pscore1) (rbar pscore2) `vlist1' , yline(0, lstyle(foreground) extend) ylabel() xtitle("Propensity Score") ytitle("Density") legend(`l1' `l2' `l3' `l4') `options' It turns out that half of the y axis labelings are negative. My question is: how to get rid of the negative signs? Please see the attached graph for an example. * * 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/

**Follow-Ups**:**Re: st: RE: A question about twoway graph***From:*"Albert Newton" <lacneo@gmail.com>

**References**:**st: A question about twoway graph***From:*"Albert Newton" <lacneo@gmail.com>

- Prev by Date:
**Re: st: RE: How to 'predict' residual by region? Seasonal adjustment?** - Next by Date:
**st: A question about twoway graph** - Previous by thread:
**st: A question about twoway graph** - Next by thread:
**Re: st: RE: A question about twoway graph** - Index(es):

© Copyright 1996–2017 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |