Learn R Programming

GSSTDA (version 0.1.3)

plot_mapper: Plot mapper

Description

This function produces an interactive network plot using the visNetork function from the mapper results.

Usage

plot_mapper(mapper_object, trans_node_size = TRUE, exp_to_res = 1/2)

Value

Plots an interactive network using the visNetwork function.

Arguments

mapper_object

A list produced as an output of the one_D_Mapper function.

trans_node_size

Logical, it indicates whether you want to resize the size of the nodes. TRUE default option.

exp_to_res

Only necessary if trans_node_size is TRUE. An exponent of the form 1/n to which the node sizes must be raised in order to resize them.

Examples

Run this code
# \donttest{
# Create data object
data_object <- list("full_data" = full_data, "survival_time" = survival_time,
                   "survival_event" = survival_event, "case_tag" = case_tag)
class(data_object) <- "data_object"

#Select gene from data object
geneSelection_object <- geneSelection(data_object, gen_select_type="top_bot",
 percent_gen_select=10)

mapper_object <- mapper(full_data = geneSelection_object[["genes_disease_component"]],
filter_values = geneSelection_object[["filter_values"]],
num_intervals = 5,
percent_overlap = 40, distance_type = "cor",
clustering_type = "hierarchical",
linkage_type = "single")
plot_mapper(mapper_object)# }

Run the code above in your browser using DataLab