generate_graph_report: Generate graph report from a template

Description Usage Arguments Examples

Description

Generate graph report from a template

Usage

1
2
generate_graph_report(graph, article_name = "graph-report", n = 10,
  format = "pdf_document", overwrite = TRUE)

Arguments

graph

data.frame containing the graph. must have columns from, to and weight, so each row defines an edge.

article_name

file name of the article.

n

The desired number of quantiles for the edge weight section.

format

One or multiple values indicating the desired output format of the report. See rmarkdown::render for possible formats.

overwrite

If TRUE, overwrites existing reports.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
n <- 50
from <- as.integer (runif (min = 0, max = 100, n))
to <- as.integer (runif (min = 0, max = 100, n))
weight <- runif (n)
graph <- data.frame (from, to, weight)

generate_graph_report (graph = graph, n = 5, format = c ("html_document",
"pdf_document", overwrite = FALSE))

## End(Not run)

karpfen/graphreport documentation built on May 7, 2019, 8:02 a.m.