save_animation: Make an animation

Description Usage Arguments Value Examples

View source: R/PLOT-Animations.R

Description

This function makes an animation for the fit.

Usage

1
2
3
4
5
6
save_animation(data, fit = NULL, xlim = NULL, V_range = NULL,
  ylim = NULL, data_col = "black", data_lwd = 1,
  cols = c("forestgreen", "blue", "magenta", "cyan", "orange", "brown"),
  lwd = 1, lty = "dashed", fit_col = "red", fit_lwd = 2,
  delay = 0.1, width = 600, height = 400, type = "gif",
  name = "Animation.gif", image_dev = "png", image_type = "png", ...)

Arguments

data

The insitu data object

fit

The fit object

xlim

x range of data to plot

ylim

Y range of data to plot

data_col

Colour for the data

data_lwd

Line width for the data

cols

Colour for each deconvolution

lwd

Line width for each deconvolution

lty

Line type for each deconvolution

fit_col

Colour for the fit

fit_lwd

Line width for the fit

delay

Delay between frames in the animation

width

Width of the animation

height

Height of the animation

type

Type of animation (gif or HTML) gif requires additional software (see saveGIF)

name

File name to output

image_dev

Image device to use (if you get error messages about png, try setting this to 'jpeg')

image_type

Image type to use (if you get error messages about png, try setting this to 'jpg')

...

Additional parameters passed to the NMR plotting function

Value

None

Examples

1

jmstrat/NMR.Utils documentation built on July 14, 2019, 11:35 p.m.