[R] error in bargraph.CI {sciplot}

David Winsemius dwinsemius at comcast.net
Sat Mar 26 01:25:49 CET 2011


On Mar 25, 2011, at 8:06 PM, barbara costa wrote:

> Hi again,
> I opened a new worskpace and if this function is done before I do  
> other things it works!
> But to use my data I'll have a problem.

It sounds like you have a collision of some sort between package  
function names. Running just with `sciplots` loaded and then  
sequentially adding back the packages until the problem recurs would  
be the way to identify the root of the problem. (The one package that  
you use that I don't is `cluster`.) But I just added all of the  
packages in your session and was  unable to cause an error.

-- 
David.


> Thanks anyway.
> Barbara
>
> On 25 March 2011 23:51, barbara costa <rbarbarahc at gmail.com> wrote:
> Here's my session info:
>
> >  sessionInfo()
> R version 2.12.2 (2011-02-25)
> Platform: i386-pc-mingw32/i386 (32-bit)
> locale:
> [1] LC_COLLATE=English_United Kingdom.1252
> [2] LC_CTYPE=English_United Kingdom.1252
> [3] LC_MONETARY=English_United Kingdom.1252
> [4] LC_NUMERIC=C
> [5] LC_TIME=English_United Kingdom.1252
> attached base packages:
> [1] splines   stats     graphics  grDevices utils     datasets   
> methods
> [8] base
> other attached packages:
> [1] sciplot_1.0-7   Hmisc_3.8-3     survival_2.36-5
> loaded via a namespace (and not attached):
> [1] cluster_1.13.3  grid_2.12.2     lattice_0.19-17 tools_2.12.2
>
> On 25 March 2011 23:50, barbara costa <rbarbarahc at gmail.com> wrote:
> Well,
> I have the R version 12.2.2
> I installed sciplot_1.0-7.zip  for windows.
>
> I have the Windows 7 in a HP laptop.
>
> I didn't modify anything. Just copied the examples script on  
> bargraph.CI webpage to my R console because I wanted to figure it  
> out why my data was giving this error.
>
> It's really weird that it doesn't work just for me.
> Does anyone has the windows 7 and are having the same problem?
> Barbara
>
>
>
>
>
> On 25 March 2011 05:22, David Winsemius <dwinsemius at comcast.net>  
> wrote:
>
> On 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
>
> I'm not able to reproduce. It plots a "dynamite graph" with a  
> legend.  Have you modified `ToothGrowth in some way?
>
>
>
> It is the example on bargraph.CI function page
> http://127.0.0.1:16950/library/sciplot/html/bargraph.CI.html
>
> That is an address on your machine. It's one redeeming virtue is  
> that it lets us know which package you are working with.
>
> My machine details
> MacOSX 10.5.8/R2.12.1/sciplot_1.0-7
>
> Your turn now ....
>
>
> -- 
> David Winsemius, MD
> West Hartford, CT
>
>
>
>

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list