add_plot_labels | R Documentation |
Convenience function for adding labels to point_plot or others without needing the ggplot2 + pipe.
add_plot_labels(P, ..., color = NULL)
P |
A ggplot2 object, for instance as made with |
color |
Name for color legend (works for |
... |
Label items (e.g. |
A ggplot graphics object
mtcars |> point_plot(mpg ~ hp + cyl) |>
add_plot_labels(x = "The X axis", y = "Vertical", color = "# cylinders")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.