Assign intervals to numeric data
adcp_label_speed.RdAssigns intervals to column using the cut() function.
column will typically be a sea_water_speed column. To label
direction data, use adcp_label_direction().
Usage
adcp_label_speed(
dat,
column = sea_water_speed_cm_s,
n_ints = 12,
upper_value = NULL,
label_sep = " "
)Arguments
- dat
Data frame including the column with observations that will be assigned to intervals. The interval size is determined by the range of these observations and
n_ints.- column
Column in
datthat will be assigned to intervals for frequency table (NOT QUOTED).- n_ints
Number of intervals to divide observations into. The interval size is determined by the range of these observations and
n_ints. Alternatively, a vector of two or more unique break points. Passed to thebreaksargument ofcut().- upper_value
Value used to generate the upper limit of the final interval. Default is the maximum values of
column.- label_sep
Separator for the interval labels ("lower to upper"). Default is a new line to save room on plot axis.