checkIsotropy: Check the isotropy of a sample

Description Usage Arguments Value Author(s) Examples

View source: R/AFMImageAnalyser.R

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

1

Arguments

AFMImage

an AFMImage to be analysed

AFMImageAnalyser

an AFMImageAnalyser to perform the analysis

Value

an AFMImageAnalyser containing the directional variograms

Author(s)

M.Beauvais

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
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

## End(Not run)

AFM documentation built on Oct. 23, 2020, 5:23 p.m.

Related to checkIsotropy in AFM...