[R] Good Evening,

Jim Lemon drj|m|emon @end|ng |rom gm@||@com
Fri Oct 30 01:04:22 CET 2020


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 using gmail.com> wrote:

> I contacted Martin Maechler (maechler using stat.math.ethz.ch) and was advised
> to
> contact you for input on the question below...thanks!
>
> I am very new with the R experience, all I know is that it's computer
> language & coding... I'm trying to plot a regression graph for runif (100,
> 1000, 10000). What am I not getting here, I can get the values in R no
> problem, but no idea how to turn it into a graph... No idea how to
> determine the X or Y axis...etc.
> Any assistance will be appreciated...Much Thanks!
> Thanks,
> *Joy (B.) Kissoon* (Ba.So.Sc.-Criminal Justice, Nurse, Artist)
> Best Regards,
> *Joy (B.) Kissoon* (Ba.So.Sc.-Criminal Justice, Nurse, Artist)
>
>
> <
> http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> Virus-free.
> www.avg.com
> <
> http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> On Thu, Oct 29, 2020 at 10:32 AM Joy Kissoon <kissoonjoy using gmail.com> wrote:
>
> > Good Morning Martin,
> > Strangest thing I sent off my question to:   r-help using r-project.org  and
> > they forwarded your email address...!
> > Could you possibly refer me to one of the volunteers? I will also contact
> > R-helper again...thanks..
> > Thanks,
> > *Joy (B.) Kissoon* (Ba.So.Sc.-Criminal Justice, Nurse, Artist)
> >
> >
> >
> > <
> http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> Virus-free.
> > www.avg.com
> > <
> http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> > <#m_6176805314384524439_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
> > On Wed, Oct 28, 2020 at 4:02 AM Martin Maechler <
> > maechler using stat.math.ethz.ch> wrote:
> >
> >> >>>>> Joy Kissoon
> >> >>>>>     on Tue, 27 Oct 2020 15:53:00 -0400 writes:
> >>
> >>     > I am very new with the R experience, all I know is that it's
> >> computer
> >>     > language & coding... I'm trying to plot a regression graph for
> >> runif (100,
> >>     > 1000, 10000). What am I not getting here, I can get the values in
> R
> >> no
> >>     > problem, but no idea how to turn it into a graph... No idea how to
> >>     > determine the X or Y axis...etc.
> >>
> >> Dear Joy,
> >>
> >> you've sent this message to  'r-help-owner using r-project.org'
> >> but you should address it to the mailing list which is
> >>  r-help using r-project.org
> >>
> >> (The ..-owner using .... address is for the few volunteers who
> >>  moderate the list).
> >>
> >> So do send this again to the correct address,
> >> please.
> >>
> >> Best,
> >> Martin Maechler
> >>
> >>     > Any assistance will be appreciated...Much Thanks!
> >>     > Thanks,
> >>
> >>
> >>     > <
> >>
> http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >> >
> >>     > Virus-free.
> >>     > www.avg.com
> >>     > <
> >>
> http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >> >
> >>     > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >>
> >>     > On Mon, Oct 26, 2020 at 10:51 PM Joy Kissoon <
> kissoonjoy using gmail.com>
> >> wrote:
> >>
> >>     >> I am very new with the R experience, all I know is that it's
> >> computer
> >>     >> language & coding... I'm trying to plot a regression graph for
> >> runif (100,
> >>     >> 1000, 10000). What am I not getting here, I can get the values in
> >> R no
> >>     >> problem, but no idea how to turn it into a graph... No idea how
> to
> >>     >> determine the X or Y axis...etc.
> >>     >> Any assistance will be appreciated...Much Thanks!
> >>     >> Thanks,
> >>     >> *Joy (B.) Kissoon* (Ba.So.Sc.-Criminal Justice, Nurse, Artist)
> >>     >>
> >>     >>
> >>     >> <
> >>
> http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> >> Virus-free.
> >>     >> www.avg.com
> >>     >> <
> >>
> http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >> >
> >>     >> <#m_-6936147010348788549_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >>     >>
> >>
> >
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list