Learn R Programming

f1pits (version 0.1.0)

pitplot: Plot pit stop results

Description

Plot pit stop results (MUST BE in tibble format)

Usage

pitplot(pits_data, type = 3, title_text = NULL)

Value

A ggplot object

Format

Tibble

Arguments

pits_data

Tibble data generated by the pits() function

type

Plot type: individual pit stop by driver (1), grouped by team (2), grouped by driver (3, by default)

title_text

Text for the plot title, in quotes (" ") (if is omitted, a default text will be used).

Examples

Run this code
# \donttest{
pitplot(pits(10, 2025), 1, "Title: Hello world!")
# }

Run the code above in your browser using DataLab