sv_density_max_facet: Calculate the max density in a gg_density_facet() plot.

Description Usage Arguments

Description

Calculate the max density in a gg_density_facet() plot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
sv_density_max_facet(
  data,
  x_var,
  facet_var,
  model_bw = "nrd0",
  model_adjust = 1,
  model_kernel = "gaussian",
  model_n = 512,
  model_trim = FALSE
)

Arguments

data

A tibble or dataframe. Required input.

x_var

Unquoted numeric variable to be on the x scale. Required input.

facet_var

Unquoted categorical variable to facet by. Required input.

model_bw

The bw argument of the stats::density function. Defaults to "nrd0".

model_adjust

The adjust argument of the stats::density function. Defaults to 1.

model_kernel

The kernel argument of the stats::density function. Defaults to "gaussian".

model_n

The n argument of the stats::density function. Defaults to 512.

model_trim

The trim argument of the stats::density function. Defaults to FALSE.


simplevis documentation built on Jan. 15, 2022, 1:08 a.m.