plotSpatial: Plot pixel-based analysis results from spatialGreen and...

Description Usage Arguments Details Author(s)

View source: R/plotSpatial.R

Description

This function allows to plot results from pixel-based analysis of a seasonal ensemble of images in one or multiple rois.

Usage

1
2
plotSpatial(data, param, roi.data.path, image.path, 
  probs=c(0.01, 0.99), ...) 

Arguments

data

Either a data.frame or a list of dataframes

param

Character string of length 1 with name of the parameter you want to plot. It must match one of names(data)

roi.data.path

The complete path where to find roi data (e.g. '/home/me/folderROI/roi.data.RData')

image.path

A complete path of an image you want to use as background for plotting your data. E.g. '/home/me/images/my_site201406061200.jpg'

probs

Two numbers in the range [0,1] passed to quantile() function to remove tails of the distribution for the plot.

...

Additional arguments passed to the function plot

Details

This function allows to plot on a reference image results from the pixel based extraction of thresholds and other relevant parameters from pixel based fitting. Multiple ROIs are allowed and handled as well. On top of the plot the density distribution of value for each pixel is shown, if desired. Values are plotted in a black to green scale, with a legend. Data in entrance to this function can be stored in a data.frame (single ROI data) as in output from extractParameters. If you have analyised more than one ROI and you want them to be shown together, put individual data.frames in output from extractParameters in a list and pass the list as data to plotSpatial.

Author(s)

Gianluca Filippa <gian.filippa@gmail.com>


gianlucafilippa/phenopix documentation built on Nov. 4, 2019, 1:06 p.m.