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]

st: Fwd: Fine-tuning -ring- legend placement to avoid overprinting on plot


From   [email protected]
To   Statalist <[email protected]>
Subject   st: Fwd: Fine-tuning -ring- legend placement to avoid overprinting on plot
Date   Sun, 7 Apr 2013 08:09:11 +0800

Dear 'Listers,

I am trying to 'nudge' the legend key and text to avoid impinging on
my plot. There's an 'East' etc. option in the graphics editor, but it only
applies to the text and not the key; the justification options have
also failed. Any of the graphics gurus out there have any ideas?

***** Begin example *****

net install gr0002_3.pkg // install scheme 'lean2'

webuse brcancer, clear
stset rectime, failure(censrec = 1)

sts graph, by(hormon) ///
legend(size(large) ring(0) pos(2) justification(right)) ///
legend(label (1 "Long Category Name") label (2 "Category A")) ///
legend(label (3 "Category B") label (4 "Category C")) ///
legend(order(2 3 4 1)) //

***** End example *****

cheers!
Andrew Lover

______________________________________________
Epidemiologist
Centre for Infectious Disease Epidemiology Research (CIDER)
Saw Swee Hock School of Public Health
National University of Singapore
*
*   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