[R] aplpack / bagplot

Sigbert Klinke @|gbert @end|ng |rom w|w|@hu-ber||n@de
Wed Sep 21 11:54:19 CEST 2022


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) # Error in pg[segm.no, 2] : (subscript) boolean index too long

Thanks Sigbert

-- 
https://hu.berlin/sk
https://www.stat.de/faqs
https://hu.berlin/mmstat
https://hu.berlin/mmstat-int
https://hu.berlin/mmstat-ar



More information about the R-help mailing list