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: any simpler way to add text to a graph
From
"Data Analytics Corp." <[email protected]>
To
[email protected]
Subject
Re: st: any simpler way to add text to a graph
Date
Wed, 13 Apr 2011 11:04:27 -0400
Hi,
It never fails - send an email asking for help on something and then
you'll find it yourself somewhere. I found the notick option while
poking around in the graph manual. So no problem with that one. I'll
look at graph dot for my purpose.
Thanks,
Walt
________________________
Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ 08536
________________________
(V) 609-936-8999
(F) 609-936-3733
[email protected]
www.dataanalyticscorp.com
_____________________________________________________
On 4/13/2011 10:01 AM, Nick Cox wrote:
xla(, notick) is mentioned in the help for axis label options.
-graph bar-, -graph hbar-, -graph dot- all by default show means for
categorical variables.
A good way to use the graphics manual is just to flick through looking
at the pictures until you see something you want. Similarly, with
Michael Mitchell's graphics book, which is always being "borrowed"
from me indefinitely by people who find it excellent as a source of
finding commands.
Alternatively, http://www.stata.com/support/faqs/graphics/gph/statagraphs.html
Nick
On Wed, Apr 13, 2011 at 2:52 PM, Data Analytics Corp.
<[email protected]> wrote:
I created a simple graph that merely plots the means for a variable where
the means are based on a categorical variable. I created the means using
collapse:
collapse ocs, by(project)
I then added a variable to this data set as
gen x = 0.5
and created the graph I want as
scatter ocs x, xline(0.5)
I want to add a label next to each point, the label naming the project. I
first added, as an example, text(0.49 0.45 "Project 1", place(w)) to the
scatter command. That worked. But I have 10 projects. I would have to add
10 such text commands. This is very inefficient. Is there a better way?
Also, is there a way to NOT display tick marks on the x-axis since they're
meaningless here?
*
* 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/
*
* 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/