Learn R Programming

afmToolkit (version 1.0.0)

afmHysteresis: Hysteresis

Description

Bla bla bal

Usage

afmHysteresis(afmdata, silent = FALSE,...)

Value

An afmdata class variable which will consist on the original input

afmdata variable plus a new list named Hysteresis with the following fields:

Hyst_app Time hyst app

Hyst_ret Time hyst ret

Hyst_tot Time hyst total

Hyst_ratio Time hyst app/ret ratio

Arguments

afmdata

A Force-Distance curve with the afmdata structure. It should be a list with at least the 'data' field with a data frame of at least 4 columns.

silent

Logical value. If TRUE omits the name of curve being processed (defaults to FALSE)

...

Extra options to be passed to afmZeroPointSlope function

See Also

afmZeroPointSlope

Examples

Run this code
path <- path.package("afmToolkit")
data <- afmReadJPK("force-save-JPK-3h.txt.gz", path = path)
width <- 20
mul1 <- 1
mul2 <- 10
data <- afmContactPoint(data, width = width, mul1 = mul1, mul2 = mul2)
if (FALSE) {
plot(data, segment = "approach") + geom_vline(xintercept = data$CP$CP, lty = 2)
}

Run the code above in your browser using DataLab