Description Usage Arguments Value Examples
View source: R/summary_methods.R
Summary method for SAM and Smooth objects.
1 2 3 4 5 6 7 8 9 10 11 12 |
object |
An object of class |
... |
other parameters for summary_sam |
mask |
a clipper mask returned by |
clusternames |
The name of the clusters, it should match the clusternames list comprised in the |
slice |
Which slice of object should be summarized? |
window |
When smooth = TRUE the size of the window for |
smooth |
When object if of class |
temporal |
if TRUE the raster and shape files from which the summary is extracted are written in the working directory. |
A dataframe with three columns showing the cluster number, the area in pixels^2, and the cluster name as character (only if the parameeter clusternames is within the function call). Each row stand for a single particle. The function writes on disk two files "raster_out.tif" which is a raster of the object passed through the object paramenter, and a shape_out "ESRI Shapefile" folder with a shapefile holding a vectorized version of "raster_out.tif".
1 2 3 4 | x <- mosaic_info(base::system.file("extdata/mosaic.dmt", package = "uFTIR"))
mosaic_sam(x, primpke, n_cores = 1)
y <- mosaic_compose(x@path, clusterlist = primpke@clusterlist)
summary_sam(y, clusternames = primpke@clusternames, smooth = FALSE, temporal = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.