Plotting method for objects of class mrs_data.
# S3 method for class 'mrs_data'
plot(
x,
dyn = 1,
x_pos = 1,
y_pos = 1,
z_pos = 1,
coil = 1,
fd = TRUE,
x_units = NULL,
xlim = NULL,
y_scale = FALSE,
x_ax = TRUE,
mode = "re",
lwd = NULL,
bty = NULL,
label = "",
restore_def_par = TRUE,
mar = NULL,
xaxis_lab = NULL,
yaxis_lab = NULL,
xat = NULL,
xlabs = TRUE,
yat = NULL,
ylabs = TRUE,
show_grid = TRUE,
grid_nx = NULL,
grid_ny = NA,
col = NULL,
alpha = NULL,
bl_lty = NULL,
hline = NULL,
hline_lty = 2,
hline_col = "red",
vline = NULL,
vline_lty = 2,
vline_col = "red",
...
)
object of class mrs_data.
the dynamic index to plot.
the x index to plot.
the y index to plot.
the z index to plot.
the coil element number to plot.
display data in the frequency-domain (default), or time-domain (logical).
the units to use for the x-axis, can be one of: "ppm", "hz", "points" or "seconds".
the range of values to display on the x-axis, eg xlim = c(4,1).
option to display the y-axis values (logical).
option to display the x-axis values (logical).
representation of the complex numbers to be plotted, can be one of: "re", "im", "mod" or "arg".
plot linewidth.
option to draw a box around the plot. See ?par.
character string to add to the top left of the plot window.
restore default plotting par values after the plot has been made.
option to adjust the plot margins. See ?par.
x-axis label.
y-axis label.
x-axis tick label values.
x-axis tick labels.
y-axis tick label values.
y-axis tick labels.
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.
set the line colour, eg col = rgb(0.5, 0.5, 0.5).
set the line transparency, eg alpha = 0.5 is 50% transparency. Overrides any transparency levels set by col.
linetype for the y = 0 baseline trace. A default value NULL results in no baseline being plotted.
add a horizontal line at the specified value.
linetype for the horizontal line.
colour for the horizontal line.
add a vertical line at the specified value.
linetype for the vertical line.
colour for the vertical line.
other arguments to pass to the plot method.