MetricGraph 1.5.0
- Several optimization improvements for the models in
graph_lme.
- Added a paralleloption toposterior_crossvalidation.
- Created an INLAinterface for LGCP processes on metric
graphs.
MetricGraph 1.4.1
- Adding selected inverse function, for computing the inverse matrix
elements only on nonzero entries of the original sparse matrix.
- Adjusts on add_observations()andplot_function()methods.
- Adding helper functions to use stlnppobjects.
MetricGraph 1.4.0
- Added an INLA implementation for alpha=2.
- Added a vignette for handling multiple likelihoods in
R-INLAandinlabru, and updated thegraph_spde_data()function for such cases.
- Added an INLA implementation for directional models.
- Added support for directional edge weights.
- Added support for creating metric graphs from SSN,osmdata_spandosmdata_sfobjects. In such
cases, if available, edge weights and data will be automatically added
to the graph.
- Now if one creates the metric graph from
SpatialLinesDataFrame,LINESTRING,MULTILINESTRING, etc., if the object contain edge data,
they will be automatically added as edge weights.
- Added an option to not perform merges (which is now the default),
that makes the graph creation faster and using less memory.
- Added vignettes with a river example and with an example of
directional models.
- Updated the vignettes to account for the additions.
- prune_verticesnow has an option to avoid creating
circles when pruning.
- Several updates and quality of life improvements for building very
large graphs faster.
- Added the export()method, that allows one to export a
MetricGraph object as ansf,sporSSN2object.
- Added wrappers for leafletandmapviewas
methods.
- Added get_edges()andget_vertices()methods were created, that return the edges and vertices, respectively,
in either ‘sf’, ‘sp’ or the internal formats.
- Added an option formatto theget_data()method that allows one to also return the data insforspformats.
- The plotmethod now has an argumenttype,
that now also allows one to settypetomapview, thus it can returnggplot2,plotlyandmapviewobjects.
- Adding methods to do data manipulation on weights,
mutate_weight,select_weights,filter_weights,summarise_weightsanddrop_na_weights. They have aformatargument
that allows one to also returnsforspobjects.
- Updated the methods, mutate,filter,select,drop_naandsummariseto
have a format argument to also returnsforspobjects.
- Massive improvement on the observation_to_vertexmethod.
- Massive improvement on the metric graph creation speed.
- Deprecated improve_plotoption, as now all plots fromplot_function()method are improved.
- Added merge_strategyoption foradd_observations()method, for handling observations that
are very close.
- Update the metric graph data vignette for illustrating how to use
the new tools for data manipulation.
- Massive improvement for building constraint matrices for
alpha=2, and for building directional constraints.
- Updated starting values to use bounding boxes to be more
efficient.
MetricGraph 1.3.0
- Handlers were added in add_observations()for
situations where observations are projected at the same location,
specifically for theduplicated_strategyargument.
- A simulatemethod was added forgraph_lmeobjects.
- The possibility of fixing parameters during estimation was
added.
- The Spointsargument inadd_observations()has been deprecated. Now,SpatialPointsDataFramecan be
added directly in thedataargument.
- sfobjects containing data can also be directly added
using the- add_observations()method in the- dataargument.
- The option of using a graph_lmeobject to provide
starting values when fitting a model usinggraph_lme()was
added.
- The option of fitting a directional Whittle-Matérn model with
alpha=1when usinggraph_lme()was added.
- The kirchhoff_weightsargument was added to obtain
weights for Kirchhoff vertex conditions fromedge_weights.
- Handling of edge weights was improved. For example, if pruning
changes any edge weight, a warning will be given.
- The edgeweight_to_data()method was added to turn edge
weights into data in the internal metric graph format.
- edge_weightand- edge_width_weightwere
added to the- plot()method so that plots on metric graphs
can be produced with the weights providing colors to the edges, and also
with (possibly different) weights providing the thickness of the
edges.
- edge_weightswere added to- graph_componentsso that the connected components will have
the correct corresponding edge weights.
- edge_weightand- edge_width_weightwere
added to the- plot_function()method, where they work in a
similar manner to their counterparts for the- plot()method.
The difference is that the weights are plotted as piecewise constant
functions.
- The prune_verticesnow has an option to not prune
vertices whose edges have incompatible edge weights.
- The plotmethod has aninteractiveargument that returns the 2D plot as a plotly object, which is
interactive when usingggplotly.
- The dependency on the viridispackage has been
removed.
MetricGraph 1.2.0
- Changed argument datatonewdatainpredictmethods. The argumentdatawas
deprecated.
- Bugfixes on sample_spde and when adding observations based on
Euclidean positions.
- Added options vertex_unitandlength_uniton graph creations. Units are given in edge lengths with theget_edge_lengths()method.
- Added a method to check if the graph is a tree.
- The graph construction was thoroughly refactored. The resulting
construction is faster and cleaner.
- The graph constructions now accepts list of coordinates (where the
coordinates are given as either matrices or data frames),
SpatialLines,SpatialLinesDataFramesorMULTILINESTRING.
- Adding two options (sfpackage orsppackage) for handlinglonglatby using thewhich_longlatoption.
- Adding crs(if usingsf) andproj4string(if usingsp) for handling general
coordinate reference systems.
- Moving datato theprivateenvironment.
- Several data manipulation helper tools and methods were introduced,
together with a vignette with a brief tutorial on these tools.
- The method mesh_A()has been deprecated, usefem_basis()instead.
- Several quality of life improvements.
- Improved the plot()method with the optionplotly=TRUE.
- Improved the plot_function()method to acceptdataandnewdata.
- Included a process_data()method for metric graphs
- Renamed the data internal structure from “__group”, “__edge_number”,
“__distance_on_edge”, “__coord_x”, “__coord_y” to “.group”,
“.edge_number”, “.distance_on_edge”, “.coord_x” and “.coord_y”.
- Added an “advanced grouping” option, in which the group variable can
be a combination of several columns.
- Improved graph_lme() behavior to avoid having NaN as
std.errors.
- Added check for distance consistency and, more generally, check to
see if the graph has euclidean edges.
- Added method get_groups()to get the unique groups, and
also to retrieve the columns that were used to create the group
variable.
- Added the get_data()method to get the data in a
user-friendly manner.
- Added glance()andaugment()methods forgraph_lme()objects.
- Added get_vertices_incomp_dir()method to return
vertices with incompatible directions.
- Added print(),summary(),compute_characteristics(),check_euclidean(),check_distance_consistency()methods.
- Added support for edge weights.
- Created verticeselement in the metric graph object,
containing information such as degrees, indegrees, outdegrees.
- Created printmethods foredges,vertices, and for their entries.
- Added the improve_plotoption onplot_function.
- Added support for discontinuous meshes (at the vertices).
- Added support for discontinuous functions (at the vertices) for
plot_function().
MetricGraph 1.1.2
- Adjusts to ensure compatibility with future releases of the Matrix
package.
MetricGraph 1.1.1
- Adjusts on documentation for CRAN.
MetricGraph 1.1.0
- Improved the documentation.
- Reorganized some functions.
MetricGraph 1.0.0
- First version of the package.