On 12/21/05, Mosca, Ilaria <[email protected]> wrote:
> Dear Statalisters,
>
> I have specified the -by()- option in my graph bar. I would like to have
> just one title for the entire graph. Therefore, I've specified the title
> option inside the -by()- option. However, I get the following error
> message:
> invalid 'title'
> r(198);
>
> Here below you find the commands I used.
>
> #delimit ;
> graph bar (sum) popwithin15 popwithin30 popwithin45 popwithin60 if
> nearesthospital<=3 & category<=6, by(category nearesthospital, rows(6),
>         title ("% of population living within 15-30-45-60 minutes from a
> medical institution"));
>
>
Try removing the second comma after rows(6) and re-running the
command.  As an example..
. sysuse auto
(1978 Automobile Data)
. histogram mpg, by(foreign , rows(1) title("Whatever"))
. histogram mpg, by(foreign , rows(1), title("Whatever"))
invalid 'title'
r(198);
HTH's
Neil
--
"The surest way to make a monkey of a man is to quote him."
 - Robert Benchley
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/