Learn R Programming

AFM (version 1.2.0)

checkIsotropy: Check the isotropy of a sample

Description

checkIsotropy is used to check the isotropy of an AFMImage. A directional variogram is calculated for various directions. If the variogram is very similar for all the directions then the sample is isotropic.

Usage

checkIsotropy(AFMImage, AFMImageAnalyser)

Arguments

AFMImage
an AFMImage to be analysed
AFMImageAnalyser
an AFMImageAnalyser to perform the analysis

Value

Examples

Run this code
library(AFM)
library(ggplot2)

data(AFMImageOfAluminiumInterface)
AFMImage<-extractAFMImage(AFMImageOfAluminiumInterface, 0, 0, 32)
AFMImageAnalyser<-new("AFMImageAnalyser", AFMImage= AFMImage, fullfilename = AFMImage@fullfilename)
AFMImageAnalyser<-checkIsotropy(AFMImage,AFMImageAnalyser)
varios<-AFMImageAnalyser@variogramAnalysis@directionalVariograms
p2 <- ggplot(varios, aes(x=dist, y=gamma,  
                         color= as.factor(dir.hor), shape=as.factor(dir.hor)))
p2 <- p2 + expand_limits(y = 0)
p2 <- p2 + geom_point()
p2 <- p2 + geom_line()
p2 <- p2 + ylab("semivariance (nm^2)")
p2 <- p2 + xlab("distance (nm)")
p2 <- p2 + ggtitle("Directional")
p2

Run the code above in your browser using DataLab