Chart {MCBackscattering}R Documentation

Plot Backscattering Photon Flux Profile

Description

This function creates a plot of diffuse reflectance (backscattering) intensity measured on the surface. The photon flux is shown by radius (distance from incident point).

Usage

Chart(myObject,isLog=FALSE)

Arguments

myObject

The mandatory parameter of this function is the MCBS class created by MCBS constructor function.

isLog

Logical variable. Default value is FALSE. If set to TRUE, photon flux will be shown in logarithmic scale.

Details

The Chart function, alias Chart.MCBS, plots simulation results. Photon flux is computed by Simulation function. The chart shows flux according to the spatial resolution of the simulation. In case you wish to make your customized chart, please use the Export function to receive data.

Value

This function does not have any result value.

Note

In case you wish to customize your chart, please use Export function to receive data.

See Also

MCBS for construction of object with initial input parameters. Setup for initial computation of specular reflection and transport albedo. Simulation for running the simulation with adjusted parameters. print show adjusted parameters and total backscattered reflection. Export for export of photon flux with corresponding radii.

Examples

## Apple simulation data according to Qin and Lu (2006).
## DOI: 10.13031/2013.20862

# create object
cfgMedia <- c(0.63,30,0,1.4)
# the 100 low number of photons is only for demonstration
cfgSimulation <- c(100,0.05,1e-9,3,0.1)
apple <- MCBS(cfgMedia,cfgSimulation)
apple <- Simulation(apple)

# show simulation result
Chart(apple)
# show simulation result with logarithmic scale
Chart(apple,TRUE)

[Package MCBackscattering version 0.1.1 Index]