Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: labels for only *some* markers

From   Nick Cox <>
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)


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.


On Sat, Jan 12, 2013 at 9:49 AM, Vlad Tarko <> 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:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index