[R] Changing origin of line in radial plot

Thomas Levine thomas.levine at gmail.com
Thu Oct 28 03:19:11 CEST 2010


I guess you have something like this.

> testlen <- c(sin(seq(0,1.98*pi,length=100))+2+rnorm(100)/10)
> testpos <- seq(0,1.98*pi,length=100)
> radial.plot(testlen,testpos,rp.type="p",main="Test Polygon",line.col="blue")

(http://addictedtor.free.fr/graphiques/graphcode.php?graph=75)

Does this work?

> radial.plot(5-testlen,testpos,rp.type="p",main="Test Polygon",line.col="blue",radial.lim=c(0,5),radial.labels=5:0)

Tom

2010/10/27 Gonzalo Garcia-Perate <gonzillaaa at gmail.com>:
> I am creating radial plots to visualise popularity of a series of
> topics, I was wondering if someone has come across a radial plot in
> which the lines originate from the edge of the plot instead of the
> centre, does anyone know how can this be achieved in R? Are there any
> good reasons not to do it?
>
>
> Thanks,
>
> Gonzalo
>
> --
> Gonzalo Garcia-Perate
> PhD candidate, Bartlett School of Architecture, Building,
> Environmental Design & Planning.
> University College London. Gower Street, London WC1E 6BT
> g.garcia-perate at ucl.ac.uk
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list