Learn R Programming

nandb (version 0.2.1)

BrightnessPlotFolder: Make brightness plots (images) for an entire folder.

Description

This requires that the folder already have the brightnesses saved as csv files. Output images are saved as pdf.

Usage

BrightnessPlotFolder(folder.path = ".", patt = ".*[Bb]rightness.*\\.csv$",
  verbose = TRUE, ...)

Arguments

folder.path

The path (relative or absolute) to the folder you wish to process.

patt

The pattern (in regular expression) of the csv files in the folder that are brightness images. The default matches any .csv files which contains 'Brightness' or 'brightness' in its name.

verbose

Get a real time report on progress?

...

Parameters to pass to MatrixRasterPlot() (these must be named arguments).

Value

This is a ggplot2 object and can be manipulated thus.

Examples

Run this code
# NOT RUN {
setwd(tempdir())
img <- ReadImageData(system.file('extdata', '50.tif', package = 'nandb'))
WriteIntImage(img, '50.tif')
WriteIntImage(img, '50again.tif')
BrightnessTxtFolder(tau = NA, mst = "Huang", mcc = 2)
BrightnessPlotFolder()
list.files()
file.remove(list.files())  # cleanup

# }

Run the code above in your browser using DataLab