Re: [R] clock24.plot/radial plot: Fixed

2016-04-29 Thread Ogbos Okike
> -Original Message- > > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ogbos > Okike > > Sent: Friday, April 22, 2016 2:05 PM > > To: Ulrik Stervbo > > Cc: r-help@r-project.org > > Subject: Re: [R] clock24.plot/radial plot > > > &g

Re: [R] clock24.plot/radial plot

2016-04-22 Thread Ogbos Okike
> Sent: Friday, April 22, 2016 2:05 PM > To: Ulrik Stervbo > Cc: r-help@r-project.org > Subject: Re: [R] clock24.plot/radial plot > > Kind Experts, > Many thanks for your guide. I have tried to figure out something that > can help me plot my own data using the examples y

Re: [R] clock24.plot/radial plot

2016-04-22 Thread David L Carlson
Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ogbos Okike Sent: Friday, April 22, 2016 2:05 PM To: Ulrik Stervbo Cc: r-help@r-project.org Subject: Re: [R] clock24.plot/radial plot Kind Experts, Many thanks for your guide. I have tried

Re: [R] clock24.plot/radial plot

2016-04-22 Thread Ogbos Okike
Kind Experts, Many thanks for your guide. I have tried to figure out something that can help me plot my own data using the examples you referred me to. I copied part of the code as: set.seed(44) N=500 events <- as.POSIXct("2011-01-01", tz="GMT") + days(floor(365*runif(N))) +

Re: [R] clock24.plot

2016-04-22 Thread Jim Lemon
Hi Ogbos, Here is your sample data plotted in roughly the same way as the image. You can get the hours to start at the bottom, but it will require more code. swe$hour<-as.numeric(sapply(strsplit(swe$time,":"),"[",1)) swe$FD<-sample(1:2,nrow(swe),TRUE) library(plotrix)

Re: [R] clock24.plot/radial plot

2016-04-22 Thread Ulrik Stervbo
I use ggplot2 for all my plotting needs where you can make plots circular with the coord_polar. Maybe this will help you along: http://rstudio-pubs-static.s3.amazonaws.com/3369_998f8b2d788e4a0384ae565c4280aa47.html On Fri, 22 Apr 2016 at 08:31 Ogbos Okike wrote: > Dear

[R] clock24.plot/radial plot

2016-04-22 Thread Ogbos Okike
Dear All, I am trying to generate a circular/radial plot. The script below has a result I am looking for: testlen<-rnorm(24)*2+5 testpos<-0:23+rnorm(24)/4 clock24.plot(testlen,testpos,main="Test Clock24 (lines)",show.grid=FALSE, line.col="green",lwd=3) if(dev.interactive()) par(ask=TRUE) #

Re: [R] clock24.plot

2012-04-11 Thread Jim Lemon
On 04/11/2012 12:59 AM, Nick Fankhauser wrote: I've got the strange problem with clock24.plot that only the first data point (phase = 23.38, size = 0.44) from the phases/sizes numeric vectors is plotted. Does anyone have an idea why this could be? library(plotrix) phases- c(23.38, 22.29, 22.71)

[R] clock24.plot

2012-04-10 Thread Nick Fankhauser
I've got the strange problem with clock24.plot that only the first data point (phase = 23.38, size = 0.44) from the phases/sizes numeric vectors is plotted. Does anyone have an idea why this could be? library(plotrix) phases - c(23.38, 22.29, 22.71) sizes - c(0.44, 0.30, 0.30)