View source: R/geom_coordinates.R
compute_group_coordinates | R Documentation |
A Function to Label Points
compute_group_coordinates(data, scales)
data |
this is the data set where the points are found |
scales |
this function returns the coordinates of the point as: (x,y)
library(dplyr)
library(magrittr)
cars %>%
mutate(x = speed, y = dist) %>%
select(x,y) %>%
compute_group_coordinates()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.