Description Usage Arguments Value Examples
Obtain a graph induced by the packages containing certain expression in their description. The expression is matched using agrep.
1 2 3 | expre2graph(expression, plot.it = FALSE, first.neighbors = FALSE,
return.map = TRUE, point.size = "downloads", min.point.size = 15,
max.point.size = 30, nwords = 5)
|
expression |
The expression of interest |
plot.it |
Should the graph be plotted? Default is FALSE |
first.neighbors |
Should the first neighbors be added to the graph? Default is FALSE |
return.map |
Should graph objects be retrieved? Default is TRUE |
point.size |
The packages attribute which defines their size. If 'score', their size is defines based on their score. If 'downloads', their size is based on their daily downloads. Otherwise it is the same size for all of them. |
min.point.size |
The min point size, passed to leaflet. Default is 15 |
max.point.size |
The max point size, passed to leaflet. Default is 30 |
nwords |
Number of words per line in the description of the package |
Graph plot in leaflet, and an igraph object.
1 2 | expression = 'information'
expre2graph(expression)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.