graphab_project_desc {graph4lg}R Documentation

Describe the objects of a Graphab project

Description

The function describes the objects of a Graphab project

Usage

graphab_project_desc(
  proj_name,
  mode = "patches",
  linkset = NULL,
  proj_path = NULL,
  fig = FALSE,
  return_val = TRUE
)

Arguments

proj_name

A character string indicating the Graphab project name. The project name is also the name of the project directory in which the file proj_name.xml is.

mode

A character string indicating the objects of the project that are described. It must be either:

  • mode='patches'(default): The habitat patches are described with synthetic descriptors (code, number, mean capacity, median capacity, capacity harmonic mean, capacity Gini coefficient) and a histogram of capacity distribution.

  • mode='linkset': The links of a link set are described with synthetic descriptors (codes, costs, number, mean cost distance, median cost distance, cost distance harmonic mean, cost distance Gini coefficient) and a histogram of cost distance distribution.

  • mode='both': Both the patches and links of a linkset are described

linkset

A character string indicating the name of the link set whose properties are imported. The link set has been created with Graphab or using graphab_link function.

proj_path

(optional) A character string indicating the path to the directory that contains the project directory. It should be used when the project directory is not in the current working directory. Default is NULL. When 'proj_path = NULL', the project directory is equal to getwd().

fig

Logical (default = FALSE) indicating whether to plot a figure of the resulting spatial graph. The figure is plotted using function plot_graph_lg. The plotting can be long if the graph has many nodes and links.

return_val

Logical (default = TRUE) indicating whether the project features are returned as a list (TRUE) or only displayed in the R console (FALSE).

Author(s)

P. Savary

Examples

## Not run: 
graphab_project_desc(proj_name = "grphb_ex",
                     mode = "patches",
                     fig = FALSE)

## End(Not run)

[Package graph4lg version 1.8.0 Index]