egoNetwork,partition-method | R Documentation |
For a node word, cooccurrences of n degrees are calculated
## S4 method for signature 'partition' egoNetwork( object, node, degrees, pAttribute = "useControls", left = 0, right = 0, minSignificance, posFilter = c() )
object |
a partition object |
node |
query, which may by a multi-word unit |
degrees |
the degrees of the resulting egoNetwork |
pAttribute |
p-attribute of the query |
left |
no of tokens and to the left of the node word |
right |
no of tokens to the right of the node word |
minSignificance |
minimum log-likelihood value |
posFilter |
character vector with the POS tags to be included - may not be empty!! |
The function returns a data frame that can be converted into an igraph object easily. This conversion is not part of the function to keep number of dependencies of the package low.
a data frame that can be turned into an igraph object with graph.data.frame (see example)
Andreas Blaette
## Not run: nw <- partition(list(text_year="2005", text_type="speech"), corpus="PLPRNWHTM") net <- egoNetwork(nw, "Integration", 1, "word", 5,5, 3.84, "NN") g <- graph.data.frame(net[,c(1,2,3,7)]) tklplot(g) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.