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') })]
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)
print(a) summary(a)
You can extract the data from the graph using the AFM.raster()
function:
d = AFM.raster(a) head(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.