[R] using par funtions in bargraph.CI()

Manuel Morales Manuel.A.Morales at williams.edu
Mon Mar 2 22:08:41 CET 2009

On Mon, 2009-03-02 at 11:23 -0600, maxa0006 at umn.edu wrote:
> I'm trying to create a bargraph of means with standard error bars using the 
> function bargraph.CI (in the sciplot package). Like this:
> bargraph.CI(x.factor, response,data,xlab, ylab, par(family="serif"),font=11)
> However, an error message comes up when I try to use the par funtion. Does 
> the character font/style need to be changed in a different way for this 
> kind of plot? Or am I misusing the par function?

You need to issue par() before bargraph.CI()


par(family="serif", font=11)
bargraph.CI(x.factor = dose, response = len, data = ToothGrowth)

Note that you could also use the cex options to change the font size
within bargraph.CI()


> ______________________________________________
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090302/83846234/attachment-0003.bin>

More information about the R-help mailing list