Description Usage Arguments Value Examples
View source: R/PLOT-Animations.R
This function makes an animation for the fit.
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", ...)
|
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 |
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 |
None
1 | save_animation(data, fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.