draw_ggraph {CIMICE}R Documentation

ggplot graph output

Description

Draws the output graph using ggplot

Usage

draw_ggraph(g, W, labels, digits = 4)

Arguments

g

graph to be drawn

W

weights on edges

labels

node labels

digits

precision for edges' weights

Value

ggraph object representing g as described

Examples

require(dplyr)
preproc <- example_dataset() %>% dataset_preprocessing
samples <- preproc[["samples"]]
freqs   <- preproc[["freqs"]]
labels  <- preproc[["labels"]]
genes   <- preproc[["genes"]]
g <- graph_non_transitive_subset_topology(samples, labels)
W <- compute_weights_default(g, freqs)
draw_ggraph(g,W,labels,digit = 3)


[Package CIMICE version 1.0.0 Index]