Showing posts with label polar. Show all posts
Showing posts with label polar. Show all posts

Friday, April 5, 2013

RG#8: polar plot

# data
varnames <- letters[1:20]
set.seed (56445)
corr <- rnorm(20, 0, 0.5)

#plot using the package plotrix
require(plotrix)

 par(mfrow=c(3,1)) # for graph arrangement

polar.plot(corr, polar.pos=NULL, labels = varnames, main="Polar Plot",lwd=3,line.col=4)

# different style variations
# typle s
polar.plot(corr, polar.pos=NULL, labels = varnames, main="Polar Plot, type s", rp.type="s")

# type p
polar.plot(corr, polar.pos=NULL, labels = varnames, main="Polar Plot, type p",lwd=3,line.col=4, rp.type="p")