# NOT RUN {
data(rockjock_mixtures)
x1 <- xrpd_pca(rockjock_mixtures,
mean_center = TRUE,
bin_size = 1,
root_transform = 1)
#Plot the loading of dimension 1
plot(x = x1$loadings$tth,
y = x1$loadings$Dim.1,
type = "l")
# }
# NOT RUN {
#Fit loading 1 to the rockjock library
f1 <- fps_lm(rockjock,
smpl = data.frame("tth" = x1$loadings$tth,
"counts" = x1$loadings$Dim.1),
refs = rockjock$phases$phase_id,
std = "QUARTZ",
align = 0,
p = 0.05)
plot(f1, wavelength = "Cu", interactive = TRUE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab