data("locations")
locations = as.data.frame(as.matrix(locations))
ggplot2::ggplot(data = locations) + ggplot2::aes(x = pos_x, y = pos_y) +
ggplot2::geom_point(size = 0) + ggplot2::theme_classic()
locations = rotate_coordinates(x = locations$pos_x, y = locations$pos_y, n_degrees = 45)
ggplot2::ggplot(data = locations) + ggplot2::aes(x = pos_x, y = pos_y) +
ggplot2::geom_point(size = 0) + ggplot2::theme_classic()
Run the code above in your browser using DataLab