koplsPlotSensSpec {kopls} | R Documentation |
Plots sensitivity and specificity results from cross-validation in a bar plot. The produced bars are shown separately for each class including overall sensitivity and specificity results.
koplsPlotSensSpec(modelFull)
modelFull |
The 'koplscv' model from cross-validation (see koplsCV ). |
The resulting sensitivity and specificity measures.
Max Bylesjo and Mattias Rantalainen
Rantalainen M, Bylesjo M, Cloarec O, Nicholson JK, Holmes E and Trygg J. Kernel-based orthogonal projections to latent structures (K-OPLS), J Chemometrics 2007; 21:376-385. doi:10.1002/cem.1071.
## Load data set data(koplsExample) ## Define kernel function parameter sigma<-25 ## Construct kernel Ktr<-koplsKernel(Xtr,NULL,'g',sigma) ## Find optimal number of Y-orthogonal components by cross-validation ## The cross-validation tests models with Y-orthogonal components 0 through numYo modelCV<-koplsCV(Ktr,Ytr,1,3,nrcv=7,cvType='nfold',preProcK='mc',preProcY='mc',modelType='da') ## Visualize results koplsPlotSensSpec(modelCV)