[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
"Ploutz-Snyder, Robert (JSC-SK)[USRA]" <robert.ploutz-snyder-1@nasa.gov> |

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

Subject |
st: RE: AW: Need to Title a Second Y-Axis... |

Date |
Wed, 10 Jun 2009 09:11:44 -0500 |

Hmmm.. I'm using a few more options (scale, legend, etc) and I can't make that work either Martin. I tried to simplify my code earlier, but here's my full code including the other options I'm throwing at Stata: twoway (line y1 x if followup==0, sort by(tmt) xlabel(0 1(1)12) xtitle("Treatment Weeks")) (line y2 x if followup==0, yaxis(2) sort by(tmt) ytitle("LEFT axis title ") ytitle("RIGHT axis title", axis(2)) ylabel(0 1(1)3) ylabel(0(.1)1,axis(2)) legend(label(1 "left legend title ") label(2 "right legend title)"))) I'm guessing there's something about the order of these options?? I tried moving the xlabel and xtitle at the END with all of the other options (my usual method), but that doesn't seem to work. I moved things all around hoping to "bump into" the right order, but I'm stumped.. Thanks! Rob -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin Weiss Sent: Wednesday, June 10, 2009 8:51 AM To: statalist@hsphsun2.harvard.edu Subject: st: AW: Need to Title a Second Y-Axis... <> Does work, though... ************* sysuse uslifeexp, clear twoway (line le_wmale year) /* */ (line le_bmale year, yaxis(2)),/* */ ytitle(Left Side)/* */ ytitle(Right Side, axis(2)) ************* HTH Martin -----Ursprüngliche Nachricht----- Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Ploutz-Snyder, Robert (JSC-SK)[USRA] Gesendet: Mittwoch, 10. Juni 2009 15:32 An: statalist@hsphsun2.harvard.edu Betreff: st: Need to Title a Second Y-Axis... Statlisisters, I'm unsuccessful at applying axis title to a SECOND Y-axis on a plot.. Here's what I'm trying: twoway line y1 X, sort by(group) ||line y2 X, xtitle("Time") ytitle("Predicted y1") yaxis(2) ytitle("Predicted y2",axis(2)) sort I can get the second Y axis to show up, and can manipulate options with it (ex. can change labels), but I cannot get the second axis TITLE to appear?? What am I doing wrong?? Thanks! **************************************************************************** **************** Rob * * 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/

**References**:**st: Need to Title a Second Y-Axis...***From:*"Ploutz-Snyder, Robert (JSC-SK)[USRA]" <robert.ploutz-snyder-1@nasa.gov>

**st: AW: Need to Title a Second Y-Axis...***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**Re: st: Need to Title a Second Y-Axis...** - Next by Date:
**st: levpredict** - Previous by thread:
**st: AW: Need to Title a Second Y-Axis...** - Next by thread:
**Re: st: Need to Title a Second Y-Axis...** - Index(es):

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