Skip to content
Prev 360325 / 398506 Next

clock24.plot

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)
clock24.plot(swe$count,swe$hour,rp.type="s",radial.lim=c(3000,4010),
show.grid.labels=0,point.col=swe$FD,mar=c(2,2,6,2))
legend(0,1600,c("FD1","FD2"),pch=1,col=1:2,xjust=0.5,yjust=0.5,
 xpd=TRUE)

Jim
On Fri, Apr 22, 2016 at 3:01 PM, Ogbos Okike <giftedlife2014 at gmail.com> wrote:
Message-ID: <CA+8X3fXgkAZuOZq4xnxu0xyvt0fwSXF_dwn5q-LiZU07C2mjMQ@mail.gmail.com>
In-Reply-To: <CAC8ss33Xe2D6HhfBBF40dEFECgaB9NKK1AogzW1ywGm8s7s8KA@mail.gmail.com>