R/mrs_data_display.R
stackplot.mrs_data.Rd
Stackplot plotting method for objects of class mrs_data.
# S3 method for class 'mrs_data'
stackplot(
x,
xlim = NULL,
mode = "re",
x_units = NULL,
fd = TRUE,
col = NULL,
alpha = NULL,
x_offset = 0,
y_offset = 0,
plot_dim = NULL,
x_pos = NULL,
y_pos = NULL,
z_pos = NULL,
dyn = 1,
coil = 1,
bty = NULL,
labels = NULL,
lab_cex = 1,
bl_lty = NULL,
restore_def_par = TRUE,
show_grid = NULL,
grid_nx = NULL,
grid_ny = NA,
lwd = NULL,
vline = NULL,
vline_lty = 2,
vline_col = "red",
mar = NULL,
...
)
object of class mrs_data.
the range of values to display on the x-axis, eg xlim = c(4,1).
representation of the complex numbers to be plotted, can be one of: "re", "im", "mod" or "arg".
the units to use for the x-axis, can be one of: "ppm", "hz", "points" or "seconds".
display data in the frequency-domain (default), or time-domain (logical).
set the colour of the line, eg col = rgb(1, 0, 0, 0.5).
set the line transparency, eg alpha = 0.5 is 50% transparency. Overrides any transparency levels set by col.
separate plots in the x-axis direction by this value. Default value is 0.
separate plots in the y-axis direction by this value.
the dimension to display on the y-axis, can be one of: "dyn", "x", "y", "z", "coil" or NULL. If NULL (the default) all spectra will be collapsed into the dynamic dimension and displayed.
the x index to plot.
the y index to plot.
the z index to plot.
the dynamic index to plot.
the coil element number to plot.
option to draw a box around the plot. See ?par.
add labels to each data item.
label size.
linetype for the y = 0 baseline trace. A default value NULL results in no baseline being plotted.
restore default plotting par values after the plot has been made.
plot gridlines behind the data (logical). Defaults to TRUE.
number of cells of the grid in x and y direction. When NULL the grid aligns with the tick marks on the corresponding default axis (i.e., tickmarks as computed by axTicks). When NA, no grid lines are drawn in the corresponding direction.
as above.
plot linewidth.
x-value to draw a vertical line.
linetype for the vertical line.
colour for the vertical line.
option to adjust the plot margins. See ?par.
other arguments to pass to the matplot method.