I am creating densityplot for methylation EPIC data using minfi package in R
Below is my code for plotting density plot
rgsetAll <- read.metharray.exp(targets = Targets, force=TRUE) densityPlot(preprocessRaw(rgsetAll), main = "Methylation")
However i'm getting this error:
Error in density.default(newX[, i], ...) : need at least 2 points to select a bandwidth automatically Calls: densityPlot -> apply -> FUN -> FUN -> density.default
I checked beta values and there is a lot of missing values (NA) for couple of samples. Could missing values be causing error?
Did anyone face this problem while dealing with methylation array data.
Any help is appreciated