add_plot_labels: Convenience function for adding labels to point_plot or...

View source: R/point_plot.R

add_plot_labelsR Documentation

Convenience function for adding labels to point_plot or others without needing the ggplot2 + pipe.

Description

Convenience function for adding labels to point_plot or others without needing the ggplot2 + pipe.

Usage

add_plot_labels(P, ..., color = NULL)

Arguments

P

A ggplot2 object, for instance as made with point_plot() or model_plot()

color

Name for color legend (works for point_plot())

...

Label items (e.g. x = "hello") as in ggplot2::labs

Value

A ggplot graphics object

Examples

mtcars |> point_plot(mpg ~ hp + cyl) |>
  add_plot_labels(x = "The X axis", y = "Vertical", color = "# cylinders")

LSTbook documentation built on April 3, 2025, 6:02 p.m.