plot_network: This function creates an image that visualize a Patient...

Description Usage Arguments Value

View source: R/funs_plot_net.R

Description

This function creates an image that visualize a Patient Similarity Network (PSN)

Usage

1
2
3
4
5
6
7
plot_network(
  m,
  top_connections = 30,
  node_highlight = "all",
  image_type = "png",
  image_name = "plot_network"
)

Arguments

m

a similarity matrix

top_connections

an integer in [1,100], percentage of top connection to visualize

node_highlight

a string or vector of strinvs indicating the node id(s) to highlight in the network. By default all connections in top_connection are highlited

image_type

a string indicating the format of the output image

image_name

a string containing the name of the output image

label1

a string indicating the name of the first class

label2

a string indicating the name of the second class

Value

a list representing a qgraph object. The method saves an image with the visualization of the network


LucaGiudice/Simpati documentation built on Jan. 27, 2022, 11:42 p.m.