View source: R/geom_point_high_leverage.R
| geom_point_high_leverage | R Documentation | 
Returns a scatter plot with points that are colored if they have a high leverage distance
geom_point_high_leverage(
  mapping = NULL,
  data = NULL,
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  ...
)
a scatter plot with points that are colored if they have a high leverage distance
library(ggplot2)
library(magrittr)
cars %>%
ggplot(aes(x = speed, y = dist)) +
geom_point() +
geom_point_high_leverage(color = 'red')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.