Skip to content
Loads Rigaku XRD data files for analysis and graphing
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
inst/extdata
man
tests
.Rbuildignore
.gitignore
DESCRIPTION
LICENSE.md
NAMESPACE
README.md
rigakuXRD.Rproj

README.md

rigakuXRD

The goal of rigakuXRD is to analyze x-ray diffraction data from the Rigaku Smartlab x-ray diffractometer.

Installation

You can install the released version of rigakuXRD from GitHub with:

# install.packages("devtools")
devtools::install_github("thomasgredig/rigakuXRD")

Example

This is a basic example which shows you how to analyze the XRD data:

library(rigakuXRD)
## basic example code
fn = system.file("extdata", "2Theta.asc", package='rigakuXRD')
library(stringr)
d <- xrd.read.ASC(fn)
plot(d$theta, d$I.meas, log='y')

Finding the peak position

xrd.find.Peak(d$theta, d$I, 38)
xrd.find.Peak(d$theta, d$I, 44)
You can’t perform that action at this time.