Learn R Programming

tame (version 0.2.0)

construct_time_scale: Construct time scale for summary plot

Description

The construct_time_scale() function constructs a time scale for the summary plot.

Usage

construct_time_scale(object, n_breaks = 5)

Value

A list with the following components:

  • translator a data frame with the time scale.

  • mid a numeric value specifying the mid point of the time scale.

  • width a numeric value specifying the width of the time scale.

  • breaks a character vector with the breaks in the time scale.

Arguments

object

A medic or summary.medic object.

n_breaks

An integer specifying the number of breaks in the time scale.