knitr::opts_chunk$set(
  collapse = TRUE,
  fig.width = 6,
  comment = "#>"
)

Find all the frequency sweep files:

library(nanoscopeAFM)
filesAFM = AFM.getSampleImages()
freqAFM = filesAFM[sapply(filesAFM, function(x) { (AFM.dataType(AFM.import(x)) == 'frequency') })]

Frequency Sweep Graph

You can import the frequency file as an AFMdata file using the standard import function. Graphing also works with the plot.AFMdata() function.

a = AFM.import(freqAFM[1])
plot(a)

Frequency Sweep Info

print(a)
summary(a)

Frequency Sweep Data

You can extract the data from the graph using the AFM.raster() function:

d = AFM.raster(a)
head(d)


thomasgredig/nanoscopeAFM documentation built on Jan. 4, 2023, 1:33 p.m.