Co-occurrence MapΒΆ
>>> from techminer2.co_occurrence_matrix import co_occurrence_map
>>> plot = co_occurrence_map(
... #
... # FUNCTION PARAMS:
... columns='author_keywords',
... rows='authors',
... #
... # COLUMN PARAMS:
... col_top_n=10,
... col_occ_range=(None, None),
... col_gc_range=(None, None),
... col_custom_terms=None,
... #
... # ROW PARAMS:
... row_top_n=10,
... row_occ_range=(None, None),
... row_gc_range=(None, None),
... row_custom_terms=None,
... #
... # LAYOUT:
... nx_k=None,
... nx_iterations=30,
... nx_random_state=0,
... #
... # NODES:
... node_colors=(
... "#7793a5",
... "#465c6b",
... ),
... node_size_range=(30, 70),
... textfont_size_range=(10, 20),
... textfont_opacity_range=(0.35, 1.00),
... #
... # EDGES
... edge_colors=(
... "#7793a5",
... "#7793a5",
... "#7793a5",
... "#7793a5",
... ),
... #
... # AXES:
... xaxes_range=None,
... yaxes_range=None,
... show_axes=False,
... #
... # DATABASE PARAMS:
... root_dir="example/",
... database="main",
... year_filter=(None, None),
... cited_by_filter=(None, None),
... )
>>> # plot.write_html("sphinx/_static/co_occurrence_matrix/co_occurrence_map_0.html")
>>> plot = co_occurrence_map(
... #
... # FUNCTION PARAMS:
... columns='author_keywords',
... rows=None,
... #
... # COLUMN PARAMS:
... col_top_n=10,
... col_occ_range=(None, None),
... col_gc_range=(None, None),
... col_custom_terms=None,
... #
... # ROW PARAMS:
... row_top_n=None,
... row_occ_range=(None, None),
... row_gc_range=(None, None),
... row_custom_terms=None,
... #
... # LAYOUT:
... nx_k=None,
... nx_iterations=30,
... nx_random_state=0,
... #
... # NODES:
... node_colors=(
... "#7793a5",
... "#465c6b",
... ),
... node_size_range=(30, 70),
... textfont_size_range=(10, 20),
... textfont_opacity_range=(0.35, 1.00),
... #
... # EDGES
... edge_colors=(
... "#7793a5",
... "#7793a5",
... "#7793a5",
... "#7793a5",
... ),
... #
... # AXES:
... xaxes_range=None,
... yaxes_range=None,
... show_axes=False,
... #
... # DATABASE PARAMS:
... root_dir="example/",
... database="main",
... year_filter=(None, None),
... cited_by_filter=(None, None),
... )
>>> # plot.write_html("sphinx/_static/co_occurrence_matrix/co_occurrence_map_1.html")