AFM.getLine returns the data from either a horizontal or vertial line. The AFM.setLine sets the data for that line. Only a vector with the data is submitted.

AFM.setLine(obj, lineData, xPixel = NA, yPixel = NA, no = 1, verbose = FALSE)

Arguments

obj

AFMdata object

lineData

vector with new values

xPixel

vertical line at this pixel (1 to image resolution), if NA will use yPixel

yPixel

horizontal line at this pixel (1 to image resolution), if NA will use xPixel

no

channel number

verbose

if TRUE, output additional information

Value

AFMdata object with new line

See also

Author

Thomas Gredig

Examples

a = AFM.artificialImage(height=10, width=10, verbose=FALSE)
b = AFM.getLine(a, yPixel = 1, dataOnly = TRUE)
lineData = rep(b$z[1], length(b$x))
a1 <- AFM.setLine(a, lineData, yPixel = 1)
plot(a1)
#> Graphing: HeightTrace