Skip to content

Instantly share code, notes, and snippets.

@robsalasco
Created October 19, 2020 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robsalasco/ad374881897b1900b8b3cb7faee9fd02 to your computer and use it in GitHub Desktop.
Save robsalasco/ad374881897b1900b8b3cb7faee9fd02 to your computer and use it in GitHub Desktop.
library(ggforce)
#> Loading required package: ggplot2

circulo <- data.frame(
  x = 0,
  y = 0,
  r = 1
)

ggplot() +
  geom_circle(aes(x0 = x, y0 = y, r = r), fill = "red", alpha=0.25, data = circulo) +
  coord_fixed() +
  geom_hline(yintercept = 0) +
  geom_vline(xintercept = 0)

Created on 2020-10-19 by the reprex package (v0.3.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment