mcnp_plot_out_spec: Convert histogram data to average points and plot as spectrum.
Description
Model results or input source histograms from MCNP and perhaps
other sources typically provide binned tally results with columns representing
maximum energy in MeV, a column with the mean tally result or bin probability
and an uncertainty column (not used). Once the data is scanned in, or otherwise
entered into the R global environment, they can be plotted with this function.
Usage
mcnp_plot_out_spec(spec.df, title = deparse(substitute(spec.df)), log_plot = 0)
Arguments
spec.df
A data frame with no header. Maximum energy in MeV
should be in the first column, (named E_MeV),
and binned results in the second column, (named prob).
title
Title for chart (default = name of spec.df)
log_plot
0 = no log axes (default), 1 = log y-axis, 2 = log both axes.
See Also
mcnp_scan_save() to copy and paste output spectrum.