Re: [R] aplpack / bagplot

2022-09-21 Thread Eric Berger
[re-sending as plain text] Hi Sigbert, I have never used the aplpack package but out of curiosity I tried it out. Doing a scatter plot of your (x,y) data shows that there are many repeated x values, and this seems to be the source of the error. There are no repeated y values. It seems that the bag

Re: [R] aplpack / bagplot

2022-09-21 Thread Eric Berger
Hi Sigbert, I have never used the aplpack package but out of curiosity I tried it out. Doing a scatter plot of your (x,y) data shows that there are many repeated x values, and this seems to be the source of the error. There are no repeated y values. It seems that the bagplot() function does not han

[R] aplpack / bagplot

2022-09-21 Thread Sigbert Klinke
Hi, I get an error when I use bagplot from the package aplpack. Any ideas what theproblem is with the data set? library("aplpack") x <- c(5, 2, 1, 6, 3, 5, 4, 7, 4, 4, 3, 4, 5, 4, 6, 3, 3) y <- c(2, 3, 4, 6, 7, 8, 10, 11, 12, 13, 1, 14, 17, 18, 19, 20, 22) bagplot(y,x) # works bagplot(x,y)