plot {gamma} | R Documentation |
Plot
Description
Plot
Usage
## S4 method for signature 'GammaSpectrum,missing'
plot(x, xaxis = c("channel", "energy"), yaxis = c("count", "rate"), ...)
## S4 method for signature 'GammaSpectrum,Baseline'
plot(x, y, xaxis = c("channel", "energy"), yaxis = c("count", "rate"), ...)
## S4 method for signature 'GammaSpectra,missing'
plot(
x,
xaxis = c("channel", "energy"),
yaxis = c("count", "rate"),
select = NULL,
facet = FALSE,
nrow = c("fixed", "auto")
)
## S4 method for signature 'GammaSpectrum,PeakPosition'
plot(x, y, split = FALSE, span = 25)
## S4 method for signature 'CalibrationCurve,missing'
plot(
x,
error_ellipse = TRUE,
error_bar = FALSE,
energy = FALSE,
level = 0.95,
n = 50,
...
)
Arguments
x , y |
Objects to be plotted. |
xaxis , yaxis |
A |
... |
Currently not used. |
select |
A |
facet |
A |
nrow |
A |
split |
A |
span |
An |
error_ellipse |
A |
error_bar |
A |
energy |
A |
level |
length-one |
n |
A length-one |
Value
A ggplot2::ggplot object.
Author(s)
N. Frerebeau
See Also
IsoplotR::ellipse()
, IsoplotR::isochron()
Examples
# Import CNF files
spc_dir <- system.file("extdata/BDX_LaBr_1/calibration", package = "gamma")
spc <- read(spc_dir)
# Plot all spectra
plot(spc, yaxis = "rate", facet = FALSE) +
ggplot2::theme_bw()
# Plot the spectrum named 'BRIQUE'
plot(spc, xaxis = "energy", yaxis = "count", select = "BRIQUE") +
ggplot2::theme_bw()
# Plot the first three spectra
plot(spc, xaxis = "channel", yaxis = "rate", select = 1:3, facet = TRUE) +
ggplot2::theme_bw()