Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: problem using catplot to graph vertical bars


From   "Leung, Adelaine K.W." <Adelaine_Leung@hms.harvard.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: problem using catplot to graph vertical bars
Date   Mon, 25 Oct 2010 23:06:22 -0400

Hi Stata List,

I'm trying to make a simple categorical graph using catplot.  

The following command works and draws the bars horizonally
catplot group courted if enflp==272 & group!=0 & group!=2 & gal4line==1, percent(courted) 

However, I would like the same graphs drawn with vertical bars using the following command:

catplot bar group courted if enflp==272 & group!=0 & group!=2 & gal4line==1, percent(courted) 

I get an error: variable bar not found

Any advice will be great!

Thanks in advance.

Adelaine





*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index