On Thu, 31 Aug 2006, Uwe Ligges wrote:
>
> zhe zhang wrote:
>> Dear R users,
>>
>> I would like to adjust the x axis the way I wanted using
>> "forestplot(labeltext, mean, lower, upper, align = NULL, xlab = "", zero =
>> 0, graphwidth = unit(2, "inches"), col = meta.colors(), xlog = FALSE)". I
>> tried using xaxt="n" and then redefine the axis using axis(1, at=c(0,0.5,1.0
>> ,1.5,2.0,2.5),label=c(0,0.5,1.0,1.5,2.0,2.5)), but it doesn't work at all.
>> Seems the forestplot function itself does not allow some basic plot option
>> like xaxt="n"? Anybody porvides some hints to solve this problem? Many
>> thanks!
>
> Either adapt the function yourself and provide a patch to the package
> maintainer, who certainly will be happy if people are contributing
> features and bugfixes, or send a feature request to the package maintainer.
>
The forestplot() function uses grid graphics, for which xaxt="n" is not
"some basic plot option". More importantly, although it would be easy to
not draw the x axis, it wouldn't help at all, since axis() still wouldn't
work.
-thomas
Thomas Lumley Assoc. Professor, Biostatistics
[EMAIL PROTECTED] University of Washington, Seattle
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.