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: RE: x axis forest plot


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   RE: st: RE: x axis forest plot
Date   Thu, 7 Oct 2010 15:06:27 +0100

I have never used -metan-. But it seems that you are instructing the program to put the text "0" against the number . (missing). -graph- is complaining about that. 

I can simulate that error

. sysuse auto
(1978 Automobile Data)

. scatter mpg weight, xla(2000 "big" . "very big")
invalid label specifier, :  2000 "big" . "very big":
r(198);

but I can't say whether this is a consequence of your data or of -metan-. But people who use -metan- now have more evidence. 

Nick 
[email protected] 

Vincent de Jonge

one of the commands I used was:

metan a b c d, label(namevar=Author) by(HQ) random rr xlabel(0,1,5) force

with this error:
invalid label specifier, :  0 "1" . "0" 0 "1" 1.6094379124341 "5":

or
metan a b c d, label(namevar=Author) by(HQ) random rr xlabel(0,1,5)
invalid label specifier, :  0 "1" . "0" 0 "1" 1.6094379124341 "5":

is that of any help?

on 07-10-2010 14:48 Nick Cox said the following:

> -metan- is a user-written command (SSC). 
> 
> It usually helps and never hurts if you show exact code that you tried. 
> 
> In general with a graphics command you can not omit data points from a graph by truncating the axis scale. You must omit data explicitly e.g. by using -if-. 
> 
> -xaxis()- and -xlabel()- are options, not commands. 
 
Vincent de Jonge
 
> I did a meta-analysis on count data using the db 
> metan command and plotted a forest plot. However, to improve readability 
> I would like to limit the x axis. This just won't work. I don't know how 
> to do it. Tried commands like xaxis, xlabel, etc. but always get an 
> error. Hope someone can get me the answer.

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