Description Usage Arguments Details Examples
plot.powdRfps is designed to provide easy, adaptable plots
of full pattern summation outputs produced from fps.
| 1 2 | 
| x | a powdRfps object | 
| wavelength | One of "Cu", "Co" or a custom numeric value defining the wavelength (in Angstroms). Used to compute d-spacings.When "Cu" or "Co" are supplied, wavelengths of 1.54056 or 1.78897 are used, respectively. | 
| mode | One of "fit", "residuals" or "both" defining whether to plot the fitted patterns, the residuals of the fit, or both, respectively. Default = "fit". | 
| group | A logical parameter used to specify whether the plotted data are grouped according to the phase name. Default = FALSE. | 
| xlim | A numeric vector providing limits of the x-axis (E.g.  | 
| show_excluded | A logical value specifying whether the areas excluded from the
fitting are identified in the plot as grey rectangles. Default  | 
| interactive | logical. If TRUE then the output will be an interactive ggplotly object. If FALSE then the output will be a ggplot object. | 
| ... | other arguments | 
When seeking to inspect the results from full pattern summation, interactive
plots are particularly useful and can be specified with the interactive
argument.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #Load the minerals library
data(minerals)
# Load the soils data
data(soils)
## Not run: 
fps_sand <-  fps(lib = minerals,
                smpl = soils$sandstone,
                refs = minerals$phases$phase_id,
                std = "QUA.1",
                align = 0.2)
plot(fps_sand, wavelength = "Cu")
plot(fps_sand, wavelength = "Cu", interactive = TRUE)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.