dot-density_mode: Get the maximum density value in a density plot

.density_modeR Documentation

Get the maximum density value in a density plot

Description

Useful for placing geoms in the center of density plots

Usage

.density_mode(data, col)

Arguments

data

A tibble.

col

A tidyselect column.

Value

The maximum density value.


volker documentation built on April 12, 2025, 9:16 a.m.