# NOT RUN {
set.seed(123)
library("ggally") # for diagnostic plots
data(MUD2)
sumSpectra(MUD2)
mylvls <- seq(3, 30, 3)
# Plot before alignment
plotSpectra2D(MUD2,
which = c(2, 3, 5, 6), showGrid = TRUE,
lvls = LofL(mylvls, 4),
cols = LofC(c("black", "red", "blue", "green"), 4, 10, 2)
)
# Carry out alignment
# You might want to direct the diagnostic output here to a pdf file
# This alignment takes about 90 seconds including the plotting overhead
MUD2a <- hats_alignSpectra2D(MUD2, method = "MBO", debug = 1, plot = TRUE)
# Plot after alignment
plotSpectra2D(MUD2a,
which = c(2, 3, 5, 6), showGrid = TRUE,
lvls = LofL(mylvls, 4),
cols = LofC(c("black", "red", "blue", "green"), 4, 10, 2)
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab