SCM

SCM Repository

[chemosensors] View of /pkg/man/demo-Mixtures.Rd
ViewVC logotype

View of /pkg/man/demo-Mixtures.Rd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 55 - (download) (as text) (annotate)
Wed Mar 2 14:48:07 2016 UTC (2 years, 11 months ago) by variani
File size: 1510 byte(s)
new Rd produced by roxygen2
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/demos.R
\docType{data}
\name{demo-Mixtures}
\alias{demo-Mixtures}
\title{Demo Mixtures.}
\description{
Demo Mixtures.
}
\examples{
### Expreiment #1: test all combinations of mixtures for three analytes A, B and C

set1 <- c("A 0.05", "B 0.05", "C 1", # pure analytes
  "A 0.05, B 0.05", "A 0.05, C 1", "B 0.05, C 1", # binary mixtures
  "A 0.05, B 0.05, C 1") # a ternary mixture

# data model 'plsr' leads to a visually nice distribution of gas classes via PCA scoreplot
sa1 <- SensorArray(model = "plsr", num = 3:5, dsd = 0)

# look at the level of signal in reponse to pure analytes and mixtures
# - the highest and the lowest levels of signal correspond to two pure analytes, 
#   A and B, respectively (that will result in a nice triangle-bounded distribution of PCA scores)
p1 <- plotSignal(sa1, set = set1)
p1

# If air samples are included, (in most cases) PCA shows the signal magnitudes 
# across gas classes in respect to air-level (zero-level) 
p2 <- plotPCA(sa1, set = rep(set1, 3))
p2 

p3 <- plotPCA(sa1, set = rep(set1, 3), air = FALSE)
p3 

### Experiment #2: two analytes A and C, and their binary mixture AC 
#   at differenct concentration levels

set2 <-  c("A 0.01", "A 0.05", "C 0.1", "C 1", "A 0.01, C 0.1", "A 0.05, C  1")

# default data model 'ispline'
sa2 <- SensorArray(num = 3:5, dsd = 0)

p4 <- plotSignal(sa2, set = set2)
p4

p5 <- plotPCA(sa2, set = rep(set2, 3), air = FALSE)
p5
}
\keyword{demo}


R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge