Isoprocessor supports several plotting and data conversion functions for scan data. This vignette shows some of the functionality for scan files read by the isoreader package (see the corresponding vignette for details on data retrieval, storage and export).


Plotting the raw data can be done either with the generic iso_plot_raw_data() function for a simple plot with default parameters, or directly using the scan specific iso_plot_scan_data():

Voltage Scan

iso_plot_scan_data(scan_files, type = "High Voltage")

Magnet Scan

iso_plot_scan_data(scan_files, type = "MagnetCurrent")

Time Scan

iso_plot_scan_data(scan_files, type = "Clock")


All customization options are described in the function help (?iso_plot_scan_data) and include, for example, plotting only a specific subset of masses:

Isotope ratios

Isoprocessor provides a dynamic ratio calculation function (iso_calculate_ratios()) that accepts any combination of masses, here demonstrated for several different ratios. In this context, another useful customization option of the plotting function is the option to adjust plot aesthetics such as color, shape, and paneling:

Plot styling

Since all isoprocessor plots are standard ggplot objects, they can be modified with any ggplot commands.

# replot
iso_plot_scan_data(scan_files, type = "MagnetCurrent") +
  # modify plot styling (ggplot functionality)
  theme(text = element_text(size = 20))