Produces a graph of the crystalline area of a X-ray diffraction pattern of starch and background.
matrix. The matrix of X-ray diffraction pattern. The first row corresponds to Bragg angle 2θ; the second row corresponds to intensity.
matrix. The matrix of background shape (curve of the amorphous starch). The first row corresponds to Bragg angle 2θ; the second row corresponds to intensity.
Claudio Pozo Valenzuela [aut, cre] and Saddys Rodriguez-llamazares [aut]
1 2 3 4 5 6 7 8 9 10
# Convert data frame to matrix, select A-type starch pattern <- as.matrix(t(XRD[, c("Bragg_angle","A")])) # List of crystallinity components crs <- crystMW(pattern, N = 11, iter = 100) # Original matrix original <- crs$original # Background shape background <- crs$background # Plots the crystalline area of a XRD pattern xrdplot(pattern=original, background=background)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.