Skip to contents

Generates x labels for histogram-based plots, create_coverageplot and create_residualplot

Usage

generate_xlabels(histogram_obj, n_labels = 5, return_xat = F, disjoint = T)

Arguments

histogram_obj

a Histogram or HistogramFit object

n_labels

number of x axis labels

return_xat

logical, whether to return the indices of the labels, default FALSE, returns the labels

disjoint

logical, whether to check if the histogram_obj contains disjoint intervals. If found only breakpoints will be labelled if no disjoint intervals are found, x labels default to standard

Value

a vector of labels (character) or indices (numeric)

Examples

if (FALSE) {
 x <- observations_to_histogram(rnorm(10000))
 generate_xlabels(x, n_labels = 5, xat = F, disjoint = F)
}