f2a.map.jpeg {ShapeSelectForest} | R Documentation |
f2a.map.jpeg
Description
Creates a time series of jpegs. One jpeg is created for each year of the map output of f2a.raster
.
Usage
f2a.map.jpeg(years, folder, OUTPUT.fn, height = 10,
width = 10 * (dim(mapgrid.dist)[2] / dim(mapgrid.dist)[1]),
units = "in", res = 400)
Arguments
years |
Vector of the years included in the time series data. |
folder |
Folder (full path) containing the input rasters. This is also the folder where the output will be written. |
OUTPUT.fn |
Filename of output from |
height |
The height of the device. |
width |
The width of the device. The default is the width that will give accurate ratio of height to width for a raster. |
units |
The units in which |
res |
The nominal resolution in ppi which will be recorded in the bitmap file, if a positive integer. Also used for units other than the default. If not specified, taken as 300 ppi to set the size of text and line widths. |
Details
Creates one jpeg for each year in years
.
Value
Returns nothing
Author(s)
Liz Freeman
See Also
Examples
## Not run:
# define years
years <- c(1984, 1986:2010)
# define a folder for all outputs
folder.in <- paste(system.file(package = "ShapeSelectForest"),
"extdata", "helpexamples", sep = "/")
folder.out <- getwd()
# define filenames
flat.pred.fn <- "MINI_FLATPRED.img"
b5.fn <- "MINI_B5.img"
fi.fn <- "MINI_FI.img"
nbr.fn <- "MINI_NBR.img"
ndvi.fn <- "MINI_NDVI.img"
INPUT.bands <- c(b5.fn, fi.fn, nbr.fn, ndvi.fn)
# call f2a.raster
ans1 <- f2a.raster(years = years, folder.in = folder.in, folder.out = folder.out,
OUTPUT.fn <- "f2a_example.img", flat.pred.fn = flat.pred.fn, INPUT.bands = INPUT.bands)
# create jpegs
ans2 <- f2a.map.jpeg(years = years, folder = folder.out, OUTPUT.fn = "f2a_example.img")
## End(Not run)