Angular statistics

Functions for helping with angular statistics

mean_azimuth()

Compute a weighted average azimuth (using angular statistics) of multiple line segments

opposite_azimuth()

Return opposite azimuth in decimal degrees (for a given azimuth in decimal degrees)

azimuth_difference()

Compute a a difference between two azimuth using angular math

st_avg_line_azimuth()

Compute the average azimuth of a complex (typically more than two vertices) line segment

Graphics Utilities

Tools for data visualization using NN styles

nn_colors()

Return NN colors

nn_basic_theme()

Basic Nelson\Nygaard Plot Theme

nn_color_ramp()

Return a sequential, diverging, or qualitative palette/ramp of NN colors

Other Utilities

Other useful functions that don’t fit into another group.

write_clip_with_header()

Writes to Clipboard with Header

get_sharepoint_dir()

Get sharepoint directory for user running this function

replace_nan()

Replance NaN with NA

mm_norm()

Min-Max Normalization of a Vector of Numbers

st_parallel_line()

Create parallel lines at distance, assumes sf data frame input.

Package Data

Supporting data for functions in the package, also available for export

nn_base_color_palette

Base NN Color Palette (2022)