saveSpplotFromAFMImage {AFM}R Documentation

Save on disk an AFMImage as a Lattice (trellis) plot

Description

save a Lattice (trellis) plot of an AFMImage using the spplot method of the sp package. This function is used to evaluate visually the quality of the predicted surface when a variogram model is used.

Usage

saveSpplotFromAFMImage(
  AFMImage,
  fullfilename,
  expectedWidth,
  expectHeight,
  withoutLegend
)

Arguments

AFMImage

an AFMImage from Atomic Force Microscopy

fullfilename

directory and filename to save to png

expectedWidth

(optional) expected width of the saved image. Default is 400px.

expectHeight

(optional) expected height of the saved image. Default is 300px.

withoutLegend

(optional) set at FALSE, the cuts legend will be included in the plot. Default is FALSE.

Details

saveSpplotFromAFMImage save a a Lattice (trellis) plot of an AFMImage on disk

Author(s)

M.Beauvais

Examples

## Not run: 
library(AFM)

data(AFMImageOfAluminiumInterface)
saveSpplotFromAFMImage(AFMImageOfAluminiumInterface,
                       paste(tempdir(), "myFileWithoutLegend.png", sep="/"), 800,800, TRUE)
saveSpplotFromAFMImage(AFMImageOfAluminiumInterface, 
                       paste(tempdir(), "myFileWithLegend.png", sep="/"), 800,800, FALSE)

## End(Not run)

[Package AFM version 2.0 Index]