Skip to content
Prev 279914 / 398506 Next

scatterplot to boxplot translation?

Thanks for the tip on "cut," seems like it should work. I must still be missing something, though. Here, I'm cutting on the y variable, then attempting the boxplot:

cutRPKM <- cut(count$RPKM, breaks=4)

head(cutRPKM)
[1] (-0.0995,24.8] (-0.0995,24.8] (-0.0995,24.8] (-0.0995,24.8] (-0.0995,24.8]
[6] (-0.0995,24.8]
Levels: (-0.0995,24.8] (24.8,49.8] (49.8,74.7] (74.7,99.6]

boxplot(as.numeric(cutRPKM))

This gives me a single box instead of five boxes. ??

Thanks again,
--Kelly V.