graph.cells: Data visualization

Description Usage Arguments Details Examples

View source: R/graph.cells.R

Description

This function uses is.raptor files to create a two panel plot including; 1) a schematic overview of the ring width sequence and 2) a graphical representation of the cell size and position within a specific year (highlighted in the ring width sequence).

Usage

1
graph.cells(input, year=FALSE, interact=FALSE)

Arguments

input

an is.raptor file.

year

a numerical value specifying the year of interest. Default starts with the first year and plots the other years in sequence.

interact

a logical flag. If TRUE, the user can interactively cycle through plots of annual rings (default = FALSE).

Details

This graphical interface aids in exploring the cell position and cell size. The upper plot provides and overview of the available years within the data.frame. Grey shading indicates the year that is presented in the lower panel. The italic value in the upper panel presents the number of cells within the selected year. The lower panel shows the position of the cells with their unique "CID". XCAL and YCAL positions are standardized to the minimum occurring coordinates. Within the lower panel, the grey boxes represent the cells, derived from the lumen area ("CA") assuming a square. When "interact = TRUE", readline messages will be presented with multiple options to create a new plot while moving along the years (including selecting the previous, next year or selecting a specific year). Stopping the interact function is done by typing "x". Terminate this function before continuing with other functions.

Examples

1
2
3
4
#' #plotting example data
input<-example.data(species="LOT_PICEA")
input<-is.raptor(input, str=TRUE)
graph.cells(input, year=2010)

Example output

'data.frame':	11685 obs. of  7 variables:
 $ ID    : Factor w/ 4 levels "LOT_PICEA","LOW_PINUS",..: 1 1 1 1 1 1 1 1 1 1 ...
 $ CID   : int  31 32 34 40 45 50 53 56 57 59 ...
 $ YEAR  : int  2007 2007 2007 2007 2007 2007 2007 2007 2007 2007 ...
 $ CA    : num  1252 1136 1139 1320 1688 ...
 $ XCAL  : num  -1481 -1440 -1402 -1365 -1317 ...
 $ YCAL  : num  108980 108979 108979 109000 109006 ...
 $ CWTALL: num  3.01 2.76 2.04 2.69 2.36 2.21 2.47 2.51 2.59 2.86 ...
NULL

RAPTOR documentation built on March 13, 2020, 3:02 a.m.

Related to graph.cells in RAPTOR...