add_plot_labels {LSTbook} | R 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 |
color |
Name for color legend (works for |
... |
Label items (e.g. |
Value
A ggplot graphics object
Examples
mtcars |> point_plot(mpg ~ hp + cyl) |>
add_plot_labels(x = "The X axis", y = "Vertical", color = "# cylinders")
[Package LSTbook version 0.5.0 Index]