Learn R Programming

AFM (version 2.0)

getLogLogOmnidirectionalSlopeGraph: Get the graph of the Log Log omnidiretction variogram getLogLogOmnidirectionalSlopeGraph returns Get the graph of the Log Log omnidirectional variogram

Description

Get the graph of the Log Log omnidiretction variogram getLogLogOmnidirectionalSlopeGraph returns Get the graph of the Log Log omnidirectional variogram

Usage

getLogLogOmnidirectionalSlopeGraph(AFMImageAnalyser, withFratcalSlope = FALSE)

Arguments

AFMImageAnalyser
withFratcalSlope

a boolean to indicate if the graph should contain a line representating the slope for the calculation of the fractal index and topothesy

Value

a ggplot2 graph

Examples

Run this code
# NOT RUN {
library(AFM)
library(ggplot2)

data(AFMImageOfRegularPeaks)

AFMImageAnalyser = new("AFMImageAnalyser",
         fullfilename="/home/ubuntu/AFMImageOfRegularPeaks-Analyser.txt")
variogramAnalysis<-AFMImageVariogramAnalysis(sampleFitPercentage=3.43/100)
AFMImageAnalyser@variogramAnalysis<-variogramAnalysis
AFMImageAnalyser@variogramAnalysis@omnidirectionalVariogram<-
     calculateOmnidirectionalVariogram(AFMImage= AFMImageOfRegularPeaks, 
                                       AFMImageVariogramAnalysis= variogramAnalysis)
p<-getLogLogOmnidirectionalSlopeGraph(AFMImageAnalyser,  withFratcalSlope=TRUE)
p
# }

Run the code above in your browser using DataLab