Skip to content

using par funtions in bargraph.CI()

2 messages · maxa0006 at umn.edu, Manuel Morales

#
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?

Thanks!

Melissa
#
On Mon, 2009-03-02 at 11:23 -0600, maxa0006 at umn.edu wrote:
You need to issue par() before bargraph.CI()

E.g.

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()

Manuel