Scale values to plot space

scale_values_plot_space(
  x,
  min_ps,
  max_ps = NULL,
  min_val = 0,
  max_val = NULL,
  extent = 0.9
)

Arguments

x

A vector of values to scale

min_ps

The minimum value in plot space to use

max_ps

The maximum value in plot space to use. Default is NULL, which will use min_ps + 1.

min_val

The minimum value to plot. Default is 0. If NULL, will use min(x)

max_val

The maximum value to plot. Default is NULL, which will use max(x)

extent

The fraction of the space between min_ps and max_ps to use. Default is 0.9.

Value

a vector of scaled values.