economiccomplexity (version 0.1.2)

networks: Networks

Description

Networks

Usage

networks(proximity_countries, proximity_products, countries_cutoff = 0.2,
  products_cutoff = 0.4, tbl_output = FALSE)

Arguments

proximity_countries

matrix or tibble/data.frame, if d is a tibble/data.frame it must contain the columns from (character/factor), to (character/factor) and value (numeric), if it is a matrix it must be a numeric matrix with countries in row names and column names

proximity_products

matrix or tibble/data.frame, if d is a tibble/data.frame it must contain the columns from (character/factor), to (character/factor) and value (numeric), if it is a matrix it must be a numeric matrix with products in row names and column names

countries_cutoff

all the values lower than the specified countries_cutoff will be converted to 0 and excluded from the countries network (default set to 0.2)

products_cutoff

all the values lower than the specified products_cutoff will be converted to 0 and excluded from the products network (default set to 0.4)

tbl_output

when set to TRUE the output will be a tibble instead of a graph (default set to FALSE)

References

For more information on networks such as the product space and its applications see:

atlas2014economiccomplexity

Examples

Run this code
# NOT RUN {
networks(
 proximity_countries =
  package_output_demo$proximity_matrix$proximity_countries,
 proximity_products =
  package_output_demo$proximity_matrix$proximity_products,
 tbl_output = TRUE
)
# }

Run the code above in your browser using DataLab