plot.mrs_data: Plotting method for objects of class mrs_data.

Description Usage Arguments

View source: R/mrs_data_display.R

Description

Plotting method for objects of class mrs_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
28
29
30
31
## 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,
  xat = NULL,
  xlabs = TRUE,
  yat = NULL,
  ylabs = TRUE,
  show_grid = TRUE,
  grid_nx = NULL,
  grid_ny = NA,
  col = NULL,
  alpha = NULL,
  ...
)

Arguments

x

object of class mrs_data.

dyn

the dynamic index to plot.

x_pos

the x index to plot.

y_pos

the y index to plot.

z_pos

the z index to plot.

coil

the coil element number to plot.

fd

display data in the frequency-domain (default), or time-domain (logical).

x_units

the units to use for the x-axis, can be one of: "ppm", "hz", "points" or "seconds".

xlim

the range of values to display on the x-axis, eg xlim = c(4,1).

y_scale

option to display the y-axis values (logical).

x_ax

option to display the x-axis values (logical).

mode

representation of the complex numbers to be plotted, can be one of: "re", "im", "mod" or "arg".

lwd

plot linewidth.

bty

option to draw a box around the plot. See ?par.

label

character string to add to the top left of the plot window.

restore_def_par

restore default plotting par values after the plot has been made.

mar

option to adjust the plot margins. See ?par.

xaxis_lab

x-axis label.

xat

x-axis tick label values.

xlabs

x-axis tick labels.

yat

y-axis tick label values.

ylabs

y-axis tick labels.

show_grid

plot gridlines behind the data (logical). Defaults to TRUE.

grid_nx

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.

grid_ny

as above.

col

set the line colour, eg col = rgb(0.5, 0.5, 0.5).

alpha

set the line transparency, eg alpha = 0.5 is 50% transparency. Overrides any transparency levels set by col.

...

other arguments to pass to the plot method.


neuroconductor-devel/spant documentation built on May 18, 2021, 9:12 p.m.