# Intensity Analysis of Spatial Point Patterns on Complex Networks

## Documentation for package ‘intensitynet’ version 1.0.0

- DESCRIPTION file.

## Help Pages

AllEdgeIntensities.intensitynet | Calculate all the edge intensities of the graph. It's more accurate than using iteratively the function EdgeIntensity for all edges.
ApplyWindow | Get the intensitynet object delimited by the given window
ApplyWindow.intensitynet | Get the intensitynet object delimited by the given window
CalculateDistancesMtx.netTools | Calculates the distances between all pairs of nodes from the given network
CalculateEventIntensities | Calculates edgewise and mean nodewise intensities for the given intensitynet object
CalculateEventIntensities.intensitynetDir | Calculates edgewise and mean nodewise intensities for Directed networks
CalculateEventIntensities.intensitynetMix | Calculates edgewise and mean nodewise intensities for Mixed networks
CalculateEventIntensities.intensitynetUnd | Calculates edgewise and mean nodewise intensities for Undirected networks
dir_intnet_chicago | This data is an intensitynet object containing a directed network. The base data used is from Chicago, extracted from the spatstat package.
EdgeIntensity.intensitynet | If not calculated, calculates the intensity of the edge with nodes; node_id1, node_id2. If the edge already contains an intensity, give it directly.
GeoreferencedGgplot2.netTools | This function uses 'ggplot' to plot heatmaps of a network
GeoreferencedPlot.netTools | Plot the given network using its node coordinates
InitGraph.netTools | Creates an igraph network with the given data
intensitynet | Constructor of the class intensitynet. In order to create an intensitynet object, it is needed; an adjacency matrix, the coordinates of the nodes and the coordinates of the events.
MeanNodeIntensity.intensitynetDir | Given a node, calculates its mean intensities regarding in and out edges associated with the node.
MeanNodeIntensity.intensitynetMix | Given a node, calculates its mean intensities depending on the edges associated with the node, those intensities are: in, out (for directed edges), undirected and total intensity.
MeanNodeIntensity.intensitynetUnd | Calculates the mean intensity of the given node (intensity of all the edges of the node/number of edges of the node)
mix_intnet_chicago | This data is an intensitynet object containing an mixed network. The base data used is from Chicago, extracted from the spatstat package.
NodeGeneralCorrelation | Gives general node correlation of the network (choosing from normal correlation, covariance, moran-i or geary)
NodeGeneralCorrelation.intensitynet | Gives general node correlation of the network (choosing from normal correlation, covariance, moran-i or geary)
nodeIntensity.intensitynetDir | Given a node, calculates its mean intensities regarding in and out edges associated with the node.
nodeIntensity.intensitynetMix | Given a node, calculates its mean intensities depending on the edges associated with the node, those intensities are: in, out (for directed edges), undirected and total intensity.
nodeIntensity.intensitynetUnd | Calculates the mean intensity of the given node (intensity of all the edges of the node/number of edges of the node)
NodeLocalCorrelation | Gives node local moran-i or geary-c correlations
NodeLocalCorrelation.intensitynet | Gives node local moran-i or geary-c correlations
PathIntensity | Calculates the intensity of the given path
PathIntensity.intensitynet | Calculates the intensity of the given path
plot.intensitynetDir | Plot intensitynet object
plot.intensitynetMix | Plot intensitynet object
plot.intensitynetUnd | Plot intensitynet object
PlotHeatmap | Plot the network and if specified, the correlation heatmap. Which could be:
PlotHeatmap.intensitynet | Plot the network and if specified, the correlation heatmap. Which could be:
PlotNeighborhood | Plot the net and the events in the neighborhood area of the given node
PlotNeighborhood.intensitynet | Plot the net and the events in the neighborhood area of the given node
PointToLine.netTools | Return the distance between an event and the line (not segment) formed by two nodes.
PointToSegment | Return the shortest distance between an event and the segment formed by two nodes.
PointToSegment.netTools | Return the shortest distance between an event and the segment formed by two nodes.
SetEdgeIntensity.netTools | Sets the given intensities as an edge attribute to the given igraph network
SetNetCoords.netTools | Creates an igraph network with the given data
SetNetworkAttribute.intensitynet | Set attributes to the network edges or nodes
SetNodeIntensity.netTools | Sets the given intensities as a node attribute to the given igraph network
ShortestNodeDistance.intensitynet | Calculates the shortest distance path between two nodes
ShortestPathIntensity | Calculates the shortest path between two vertices and calculates its intensity
ShortestPathIntensity.intensitynet | Calculates the shortest path between two vertices and calculates its intensity
Undirected2RandomDirectedAdjMtx.netTools | Creates a directed adjacency matrix from an Undirected one with random directions (in-out edges) but with the same connections between nodes.
und_intnet_chicago | This data is an intensitynet object containing an undirected network. The base data used is from Chicago, extracted from the spatstat package.