Skip to content
Prev 263918 / 398502 Next

Creating a Polar Plot with expanding points as radius increases

Try this,


library(ggplot2)

d <- data.frame(theta = runif(10, 0, 360), r = runif(10, 0, 3))

ggplot(d, aes(x=theta, y=r, size=r)) + coord_polar(start=0)+
  geom_point() +
  scale_x_continuous(breaks=seq(0, 360, by=30), expand=c(0,0), lim=c(0, 360))+
  scale_area()

HTH,

baptiste
On 28 June 2011 10:35, Patrick Jemison <jemison at gmail.com> wrote: