Drawing a Circle in R

Given some fixed radius, is there a way to draw a circle in R ?

For instance, a square of fixed sides can be drawn like this:

ggplot() + 
  geom_rect(aes(xmin = 1, 
                xmax = sqrt(pi), 
                ymin = 1, 
                ymax = sqrt(pi))) + 
  coord_equal()

Can the same be done for a circle?

Thanks!

Here!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.