expre2graph: Find packages by term, and undercover their relations

Description Usage Arguments Value Examples

View source: R/expre2graph.R

Description

Obtain a graph induced by the packages containing certain expression in their description. The expression is matched using agrep.

Usage

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)

Arguments

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

Value

Graph plot in leaflet, and an igraph object.

Examples

1
2

arielolafsalgado/packexplorer documentation built on Aug. 22, 2021, 8:55 a.m.