vary_part_of_interest: Varies part of interest.

View source: R/prepare_for_plotting.R

vary_part_of_interestR Documentation

Varies part of interest.

Description

Produces variable going between percentiles of the part of interest in the data.

Usage

vary_part_of_interest(
  part_of_interest,
  lower_quantile = 0.05,
  upper_quantile = 0.95,
  granularity = 10000
)

Arguments

part_of_interest

The variable of interest.

lower_quantile

If set, this gives the lower limit of plotting (as a quantile for both variables of interest). In practice, the current behaviour is to calculate the range of both variables between the upper and lower quantile, and use the narrower one.

upper_quantile

If set, this gives the upper limit of plotting (as a quantile for both variables of interest).

granularity

Does not usually require setting. If set, gives the number of points plotted on the graph. If it is too low, the plot will contain gaps. If it is too high, plotting will be slow.

Value

Vector of values going from lower_quantile to upper_quantile of the distribution of the varaible of interest.


OxWearables/epicoda documentation built on Dec. 7, 2022, 9:07 p.m.