Re: [R] Change Confidence Limits on a plot

From: Gavin Simpson <gavin.simpson_at_ucl.ac.uk>
Date: Fri, 14 Nov 2008 17:57:00 +0000

On Fri, 2008-11-14 at 08:35 -0800, Robin Clark wrote:
> Hi,
> I am attempting to set the confidence limits on a ls means plot as follows:
>
> mult<-glht(lm(effectModel, data=statdata, na.action = na.omit),
> linfct=mcp(mainEffect="Means"))
> meanPlot <- sub(".html", "meanplot.jpg", htmlFile)
> jpeg(meanPlot)
>
> plot(mult, main=NA, xlab=unlist(strsplit(Args[4],"~"))[1])
>
> This produces 95% CIs by default but I would like to produce 99% CIs - How
> do I do this?

plot(confint(mult, level = 0.99))

should do it if I understand both you and the help for multcomp correctly.

HTH G

>
> Thanks,
> Robin
>

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

______________________________________________
R-help_at_r-project.org 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.
Received on Fri 14 Nov 2008 - 17:59:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 14 Nov 2008 - 18:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive