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]

Re: st: labels for only *some* markers


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: labels for only *some* markers
Date   Sat, 12 Jan 2013 09:54:59 +0000

Naturally. For example

gen mylabel = year if !mod(year, 10)

or

gen mylabel = year if mod(year, 10) == 0

You'd be adding a blank label for most years, but that looks a lot
like no label.

Nick

On Sat, Jan 12, 2013 at 9:49 AM, Vlad Tarko <[email protected]> wrote:

> I was wondering if it's possible to add labels only to some markers in a
> connected graph. My labels are the years, and I'd prefer to have the labels
> either only for the first and last year or only for a few years (e.g. once
> every ten years). Placing labels for all years is not very useful because
> there's a great deal of overlap between the labels. Thanks!
*
*   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