knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
You can find the setpoint and other information about an AFM image by retrieving the AFMinfo
. Here is an example:
library(nanoscopeAFM) # loading the test file from the nanoscopeAFM package filename = (system.file("extdata","AR_20211011.ibw",package="nanoscopeAFM")) # retrieving an AFMinfo object h = AFMinfo(filename)
Basic information about an image can also be viewed, once you have an AFMinfo
object:
# generate a summary of the AFMinfo object summary(h)
Finding additional special information, using the function AFMinfo.item
; note that the search string is case-sensitive.
sp = AFMinfo.item(h, 'Setpoint') print(paste("Setpoint:",sp,"V"))
The names of the items can be found with the same function; here is a list of the first few item names that can be used:
allNames = AFMinfo.item(h) print(allNames[1:50])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.