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: Add single Point to Scatter


From   Ulrich Kohler <[email protected]>
To   [email protected]
Subject   Re: st: Add single Point to Scatter
Date   Thu, 05 May 2011 10:17:43 +0200

Am Donnerstag, den 05.05.2011, 10:02 +0200 schrieb Rilke Rainer Michael:
> Hello Stata-List,
> 
> does somebody know how I can add a single point to a scatter plot,
> without generating a new entry in my data table?
> I need this to mark a theoretical prediction one of my models make and
> it would be interesting to mark it with a single dot different from
> all others.

Code below shows two possiblities. 

sysuse auto
graph twoway 
  || scatter mpg rep78 
  || scatter mpg rep78 in 1 
  || scatter mpg rep78 if make=="VW Diesel"


-scatteri- could be also used. 



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


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