make_cr_graph | R Documentation |
Takes a frag.object
and returns an undirected graph representing the "connection" relationships between archaeological fragments. A "connection" relationship refers to a physical connection between two fragments that were part of the same object.
make_cr_graph(object)
object |
A |
Returns an undirected graph of "igraph
" class. The "fragments" data frame of the frag.object is used to set the vertices attributes.
An undirected igraph
class graph. The "frag_type" graph attribute is set with the "connection" character value.
Sebastien Plutniak <sebastien.plutniak at posteo.net>
make_frag_object
cr.df <- matrix(c(1,2, 1,3, 2,3, 4,5, 4,6, 7,8), ncol=2, byrow=TRUE) sr.df <- matrix( c(1,1, 9,1, 10,1, 11,2, 12,2, 13,2), ncol=2, byrow=TRUE) fragments.df <- data.frame(1:13, letters[1:13]) cr_g <- make_frag_object(cr=cr.df, fragments=fragments.df) crsr_g <- make_frag_object(cr=cr.df, sr=sr.df, fragments=fragments.df) make_cr_graph(cr_g) make_cr_graph(crsr_g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.