xrdplot: Plots the Crystalline Area of a X-Ray Diffraction Pattern of...

Description Usage Arguments Author(s) Examples

View source: R/crcal.R

Description

Produces a graph of the crystalline area of a X-ray diffraction pattern of starch and background.

Usage

1
xrdplot(pattern, background)

Arguments

pattern

matrix. The matrix of X-ray diffraction pattern. The first row corresponds to Bragg angle 2θ; the second row corresponds to intensity.

background

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.

Author(s)

Claudio Pozo Valenzuela [aut, cre] and Saddys Rodriguez-llamazares [aut]

Examples

 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)

Example output

Loading required package: flux
Loading required package: caTools
This is flux 0.3-0
Loading required package: pracma

Attaching package: 'pracma'

The following objects are masked from 'package:caTools':

    combs, trapz

cryst documentation built on May 1, 2019, 8:10 p.m.

Related to xrdplot in cryst...