this_example_runs_about_5s <- TRUE
if (!this_example_runs_about_5s) { # exclude from cran checks
## take a list of profiles
grouplist <- SPgroup[1:4]
plot(grouplist, SortMethod = 'unsorted', xticklabels = "originalIndices")
## calulate medoid profile
idxMedoid <- medoidSP(grouplist)
representativeProfile <- grouplist[[idxMedoid]]
plot(representativeProfile, main = paste0("medoid (i.e., profile ", idxMedoid, ")"))
}
Run the code above in your browser using DataLab