Hi Barbara, Works just fine for me:
> require(sciplot) Loading required package: sciplot > data(ToothGrowth) # Two-way design with options bargraph.CI(dose, len, group = supp, data = ToothGrowth, xlab = "Dose", ylab = "Growth", cex.lab = 1.5, x.leg = 1, col = "black", angle = 45, cex.names = 1.25, density = c(0,20), legend = TRUE) > sessionInfo() R version 2.11.1 Patched (2010-05-31 r52180) x86_64-apple-darwin9.8.0 locale: [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] sciplot_1.0-7 loaded via a namespace (and not attached): [1] tools_2.11.1 What OS, R and sciplot versions are you using? HTH, Jorge On Thu, Mar 24, 2011 at 8:35 PM, barbara costa <> wrote: > Hi to all, > > Does anybody knows why this is giving an error? > > > data(ToothGrowth) > > # Two-way design with options > bargraph.CI(dose, len, group = supp, data = ToothGrowth, > xlab = "Dose", ylab = "Growth", cex.lab = 1.5, x.leg = 1, > col = "black", angle = 45, cex.names = 1.25, > density = c(0,20), legend = TRUE) > Error in dn.call[[1]] : subscript out of bounds > > It is the example on bargraph.CI function page > http://127.0.0.1:16950/library/sciplot/html/bargraph.CI.html > > > Thanks a lot, > Cheers > Barbara > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. > [[alternative HTML version deleted]] ______________________________________________ R-help@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.