utils_color_breaks function

Auto Breaks for Matrix Plotting Functions

Auto Breaks for Matrix Plotting Functions

utils_color_breaks(m = NULL, n = 100)

Arguments

  • m: (required, numeric matrix) distance or cost matrix generated by psi_distance_matrix() or psi_cost_matrix(), but any numeric matrix will work. Default: NULL
  • n: (required, integer) number of colors to compute the breaks for. Default: 100

Returns

numeric vector

See Also

Other internal_plotting: color_continuous(), color_discrete(), utils_line_color(), utils_line_guide(), utils_matrix_guide(), utils_matrix_plot()

  • Maintainer: Blas M. Benito
  • License: MIT + file LICENSE
  • Last published: 2025-02-01