powered by
Convenience function for adding labels to point_plot or others without needing the ggplot2 + pipe.
add_plot_labels(P, ..., color = NULL)
A ggplot graphics object
A ggplot2 object, for instance as made with point_plot() or model_plot()
point_plot()
model_plot()
Name for color legend (works for point_plot())
Label items (e.g. x = "hello") as in ggplot2::labs
x = "hello"
mtcars |> point_plot(mpg ~ hp + cyl) |> add_plot_labels(x = "The X axis", y = "Vertical", color = "# cylinders")
Run the code above in your browser using DataLab