Skip to content
Prev 386138 / 398513 Next

Good Evening,

Hi Joy,
As Rui noted, you can get a plot with:

jk.dat<-runif(100,1000,10000)
plot(jk.dat,type="l")

This plots your vector of 100 uniformly distributed numbers against their
"index" (the order in which they appear in the vector). I suspect your
problem is that you want to define a vector of "x" values that will attach
them to a real set of observations. Say that you are preparing to work with
the daily counts of cosmic rays for a neutron monitor.

obs_dates<-as.Date(as.Date("2020-07-23"):as.Date("2020-10-30"),
 origin=as.Date("1970-01-01"))
plot(obs_dates,jk.dat,type="l",main="Daily CR counts")

That may give you some ideas.

Jim
On Fri, Oct 30, 2020 at 3:38 AM Joy Kissoon <kissoonjoy at gmail.com> wrote: