View source: R/Visualizations_general.R
add_quadrant_labels | R Documentation |
This function takes in a ggplot that is representing a scatterplot, a horizontal y coordinate, and a vertical x coordinate, and adds quadrant boundaries and text labels to the plot to indicate how many points are in each section of the scatterplot.
add_quadrant_labels(plot, x, y)
plot |
ggplot object representing a scatterplot |
x |
horizontal y coordinate to separate the quadrants |
y |
vertical x coordinate to separate the quadrants |
ggplot object with quadrant boundaries and text labels added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.