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: Re: Re: st: labelling specific values on a graph


From   "Ariel Linden" <ariel.linden@gmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: Re: Re: st: labelling specific values on a graph
Date   Thu, 12 Dec 2013 11:32:55 -0500

Thanks Nick! This works perfectly! 
________________________________________
From
  Nick Cox <njcoxstata@gmail.com>
To
  "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject
  Re: Re: st: labelling specific values on a graph
Date
  Thu, 12 Dec 2013 15:44:34 +0000
________________________________________
You don't need a new variable. Just plot selected observations on top
with extra detail.

sysuse auto
scatter mpg weight || scatter mpg weight if weight == 3260, ms(none)
mlabel(make)

Nick
njcoxstata@gmail.com


On 12 December 2013 15:34, Ariel Linden <ariel.linden@gmail.com> wrote:
> Thanks, Phil. Interesting idea. Unfortunately, the graph now shows the "."
> for the missing values as well. Any suggestions on how to present only the
> numeric values?
>
> Ariel
>
> *** code***
> gen points = .
> replace points = sampsize if inlist( popsize, 100, 1000, 10000, 50000)
>
> *** end code***



*
*   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