iso_plot_dual_inlet_data: Plot data from dual inlet files

Description Usage Arguments See Also

Description

This function provides easy plotting for mass, ratio and delta traces from IRMS dual inlet data. It can be called either directly with a set of iso_file objects, or with a data frame prepared for plotting dual inlet data (see iso_prepare_dual_inlet_plot_data).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
iso_plot_dual_inlet_data(...)

## S3 method for class 'iso_file_list'
iso_plot_dual_inlet_data(
  iso_files,
  data = character(),
  filter = NULL,
  panel = data,
  color = file_id,
  linetype = NULL,
  shape = type,
  size = 2,
  label = file_id,
  ...
)

## S3 method for class 'data.frame'
iso_plot_dual_inlet_data(
  df,
  panel = data,
  color = file_id,
  linetype = NULL,
  shape = type,
  size = 2,
  label = file_id,
  ...
)

Arguments

...

additional parameters passed on to iso_plot_data

iso_files

collection of iso_file objects

data

which masses, ratios and deltas to plot (e.g. c("44", "45", "45/44", "d45/44") - without the units), if omitted, all available masses, ratios, and delta values are plotted. Note that ratios should be calculated using iso_calculate_ratios and delta values should be calculated using iso_calculate_deltas prior to plotting.

filter

any filter condition to apply to the data beyond the masses/ratio/delta selection (param data). For details on the available data columns see iso_get_raw_data with parameters gather = TRUE and include_file_info = everything().

panel

whether to panel the data by anything. If using a single parameter (e.g. panel = panel), will generate a facet_wrap. If using a formula (e.g. panel = panel ~ . or panel = file_id ~ panel), will generate a facet_grid. The default for this parameter is to panel via facet grid by the y variable name but only if multiple y columns are provided. Otherwise will not generate any facets. If additional facet parameters are desired, please leave use facet_wrap and facet_grid diretly.

color

variable to use for color aesthetic for the plot or constant value for the point and line color

linetype

variable to use for linetype aesthetic for the plot or constant value for the line type

shape

variable to use for shape aesthetic for the plot or constant vlaue for the point shape

size

variable to use for size aesthetic for the plot or constant value for the points size

label

this is primarily of use for turning the generated ggplots into interactive plots via ggplotly as the label will be rendered as an additional mousover label.

df

a data frame of the dual inlet data prepared for plotting (see iso_prepare_dual_inlet_plot_data)

See Also

Other plot functions: iso_mark_calibration_range(), iso_mark_outliers(), iso_mark_value_range(), iso_mark_x_range(), iso_plot_continuous_flow_data(), iso_plot_data(), iso_plot_raw_data(), iso_plot_ref_peaks(), iso_plot_residuals(), iso_plot_scan_data(), iso_prepare_continuous_flow_plot_data(), iso_prepare_dual_inlet_plot_data(), iso_prepare_scan_plot_data()


KopfLab/isoprocessorCUB documentation built on Nov. 8, 2021, 9:54 a.m.