Learn R Programming

Luminescence (version 0.1.8)

plot_BINfileData: Plot single luminescence curves from a BIN file object.

Description

Plot single luminescence curves from an object returned by the readBIN2R function.

Usage

plot_BINfileData(BINfileData, position, 
                 sorter="POSITION", 
                 ltype=c("IRSL","OSL","TL","RIR","RBR"),
                 dose_rate,
                 cex.global=1)

Arguments

BINfileData
Risoe.BINfileData-class (required): requires an S4 object returned by the readBIN2R function.
position
vector (optional): option to limit the plotted curves by position (e.g. position=1, position=c(1,3,5)).
sorter
character (with default): the plot output can ordered by "POSITION","SET" or "RUN". POSITION, SET and RUN are options defined in the Risoe Sequence Editor.
ltype
character (with default): option to limit the plotted curves by the type of luminescence stimulation. Allowed values: "IRSL","OSL","TL","RIR" and "RBR". All type of curves are plotted by default.
dose_rate
numeric (optional): dose rate of the irradition source at the measurement date. If set, the given irradiation dose will be shown in Gy. See details.
cex.global
numeric (with default): global scaling factor.

Value

  • Returns a plot.

Details

The nomenclature used for the function (e.g. ltype, position) are taken from the Analyst manual (Duller, 2007). irradiation time Plotting the irradiation time (s) or the given dose (Gy) requires that the variable IRR_TIME has been set within the BIN-file. This is normally done by using the 'Run Info' option within the Sequence Editor.

References

Duller, G., 2007. Analyst. pp. 1-45.

See Also

readBIN2R

Examples

Run this code
#uncomment for usage

##load data
#data(ExampleData.BINfileData)

##plot all curves from the first position to the desktop
#pdf(file="~/Desktop/CurveOutput.pdf",paper="a4", height=11, onefile=TRUE)
  
  ##example - load from *.bin file
  #BINfile<-"[your path]"
  #BINfileData<-readBIN2R(BINfile)

#par(mfrow=c(4,3), oma=c(0.5,1,0.5,1))
#plot_BINfileData(BINfileData,position=1)
#mtext(side=4,BINfile,outer=TRUE,col="blue", cex=.7)
#dev.off()

Run the code above in your browser using DataLab