hyperSpec
Plotting Examples with ggplot2
v3_Plotting_Examples_gg_hy.Rmd
Load packages
qplotspc
data(chondro, package = "hyperSpec")
#> Warning in data(chondro, package = "hyperSpec"): data set 'chondro' not found
qplotspc(chondro)
qplotc
qplotmixmap
qplotmap
with colour mixing for multivariate overlay
chondro <- chondro - spc.fit.poly.below(chondro)
chondro <- sweep(chondro, 1, apply(chondro, 1, mean), "/")
chondro <- sweep(chondro, 2, apply(chondro, 2, quantile, 0.05), "-")
qplotmixmap(chondro[,,c(940, 1002, 1440)],
purecol = c(colg = "red",
Phe = "green",
Lipid = "blue"))
#> Warning: Removed 300 rows containing missing values (geom_point).