-.popgraph | R Documentation |
popgraph
objectsAn overload of the -
operator for popgraph
objects that
removes the edges in the first one that are in the second one.
## S3 method for class 'popgraph' e1 - e2
e1 |
A |
e2 |
A |
A new popgraph
object that represents the genotypes
left over after removing the parental part (if possible).
Rodney J. Dyer rjdyer@vcu.edu
# library(igraph) # e1 <- as.popgraph( igraph::graph.atlas(716) ) # e2 <- as.popgraph( igraph::graph.atlas(806) ) # e3 <- e1 - e2 # par(mfrow=c(1,3)) # l <- igraph::layout.fruchterman.reingold( e1 ) # plot(e1, layout=l) # plot(e2, layout=l) # plot(e3, layout=l) # par(mfrow=c(1,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.