f2a.map.jpeg | R Documentation |
Creates a time series of jpegs. One jpeg is created for each year of the map output of f2a.raster
.
f2a.map.jpeg(years, folder, OUTPUT.fn, height = 10,
width = 10 * (dim(mapgrid.dist)[2] / dim(mapgrid.dist)[1]),
units = "in", res = 400)
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. |
Creates one jpeg for each year in years
.
Returns nothing
Liz Freeman
f2a.raster
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.