General purpose convenience visualization function. Simply add other ggplot components after calling this function to customize more (e.g. with facet_wrap or theme calls). Make sure to specify lines = TRUE and/or points = TRUE to add the layers.

iso_plot_data(dt, x, y, y_error = NULL, group = NULL, color = NULL,
  fill = NULL, shape = NULL, size = 4, linetype = NULL,
  label = NULL, lines = FALSE, points = FALSE)

Arguments

dt

data frame with peak data

x

the x axis aesthetic for the calibration parameters, can be datetime, text or numeric

y

which columns to visualize, combine with c()

y_error

an error column for drawing y error bars - if multiple y are provided, error needs to point to the same number of columns

group

what to group by, multiple columns allowed (combine with paste(...)), usually not necessary if groupings are fully defined through other aesthetics

color

variable to use for color aesthetic for the plot

fill

variable to use for the fill aesthetic of the plot

shape

variable to use for shape aesthetic for the plot

size

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

linetype

variable to use for linetype aesthetic for the plot

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.

lines

whether to plot lines (FALSE by default)

points

whether to plot points (FALSE by default)

Note

should probably make sure that the default columns for gather 'panel' and 'value' do not exist...

it would be great to allow renaming of the columns via this (especially the y column)