changepointDetection {flowMeans} | R Documentation |
Fits a two-component piecewise linear regression to the minimum distance between merged clusters vs the number of clusters for a list of merged cluster solutions.
changepointDetection(vect, OrthagonalResiduals = FALSE, PlotFlag = FALSE)
vect |
A vector of minimum distances between clusters chosen to be merged at each iteration. |
OrthagonalResiduals |
Boolean value, indicates if the residuals must be transformed to orthagonal distance or not. |
PlotFlag |
Boolean value, indicating if the regression lines must be visualized. |
MinIndex |
Index of the merging step that produced the final results. |
l1 |
First regression line used for finding the changepoint for stopping the merging process. |
l2 |
Second regression line used for finding the changepoint for stopping the merging process. |
Nima Aghaeepour
library(flowMeans) data(x) res <- flowMeans(x, c("FL1.H", "FL2.H", "FL3.H", "FL4.H"), MaxN=10) ft<-changepointDetection(res@Mins) plot(res@Mins) abline(ft$l1) abline(ft$l2)