nice_vertex_label_colors: Produce a vector of suitable vector colors depending on the...

Description Usage Arguments

View source: R/plot.R

Description

Produce a vector of suitable vector colors depending on the vertex' state.

Usage

1
2
3
4
5
nice_vertex_label_colors(
  graph,
  previous = NULL,
  colors = c("black", "darkgray", wes_palette("Royal1")[2])
)

Arguments

graph

The spgraph object.

previous

The spgraph object of the last iteration. If provided, changed min_dists will be highlighted.

colors

A c(normal, infinite distance, highlight) color tuple


mhils/shortestpath documentation built on Dec. 17, 2020, 3:19 p.m.