[R] Need help plotting

Ebert,Timothy Aaron tebert @end|ng |rom u||@edu
Tue Sep 20 19:30:37 CEST 2022


Have you done something like this first?
install.packages("chron")

After that comes

library(chron)

and the rest of your code.

Tim
-----Original Message-----
From: R-help <r-help-bounces using r-project.org> On Behalf Of Bert Gunter
Sent: Tuesday, September 20, 2022 11:57 AM
To: Parkhurst, David <parkhurs using indiana.edu>
Cc: r-help using r-project.org
Subject: Re: [R] Need help plotting

[External Email]

"Also, IU's tech support told me yesterday that if I responded to a message that came as plain text, my response would go out as plain text.  Is that true for this response, or is it in HTML?"

Nope, HTML. You need to set your email client to send in plain text. Do an internet search on how to do this, e.g. with "How to send plain text email for <<your email client here>>".

Also see "?download.packages" for how to get packages from an R package repository (though RStudio and no doubt other IDE's have an interface through which to do this).

Cheers,
Bert

On Tue, Sep 20, 2022 at 8:49 AM Parkhurst, David <parkhurs using indiana.edu>
wrote:

> I like the looks of what you are doing here.
>
> However, this from my system:
> > library(chron)
> Error in library(chron) : there is no package called 'chron'
>
> How can I get chron?
>
> Also, IU's tech support told me yesterday that if I responded to a 
> message that came as plain text, my response would go out as plain 
> text.  Is that true for this response, or is it in HTML?
>
> From: Rui Barradas <ruipbarradas using sapo.pt>
> Date: Tuesday, September 20, 2022 at 4:52 AM
> To: Jim Lemon <drjimlemon using gmail.com>, Parkhurst, David < 
> parkhurs using indiana.edu>, r-help mailing list <r-help using r-project.org>
> Subject: Re: [R] Need help plotting
> Hello,
>
> Now with data, here are base R and ggplot2 plots.
>
>
> b <- read.table(text=
>                  "Dtime DNO2 DVOC     Dpm10    Dpm2.5 Dpm1 Mtime MNO2
> MVOC    Mpm10 Mpm2.5 Mpm1
>   18:00   28  164  81.34773 24.695435   14 18:00   19  151 3.000000
>   2    1
>   18:01   27  163  74.44034 23.751198   14 18:01   20  148 3.000000
>   2    1
>   18:02   30  160  72.21975 22.463129   13 18:02   19  150 3.000000
>   2    1",
>                header=TRUE,stringsAsFactors=FALSE)
>
>
> # This base R plot needs package chron
> library(chron)
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat
> .ethz.ch%2Fmailman%2Flistinfo%2Fr-help&data=05%7C01%7Ctebert%40ufl
> .edu%7C8fab207eca574151439308da9b2115b3%7C0d4da0f84a314d76ace60a62331e
> 1b84%7C0%7C0%7C637992863653204275%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4w
> LjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C
> &sdata=aiBOxqQsZI1Mc1vF3tDW5skxG7dTAw2J0ZOCvnJdJFc%3D&reserved
> =0
> PLEASE do read the posting guide
> https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.r
> -project.org%2Fposting-guide.html&data=05%7C01%7Ctebert%40ufl.edu%
> 7C8fab207eca574151439308da9b2115b3%7C0d4da0f84a314d76ace60a62331e1b84%
> 7C0%7C0%7C637992863653204275%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwM
> DAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&
> sdata=ujwOnmg30fp6NUKoTk17Uev0pg2LBf0i8qvUtM%2F%2Fjvk%3D&reserved=
> 0 and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-help&data=05%7C01%7Ctebert%40ufl.edu%7C8fab207eca574151439308da9b2115b3%7C0d4da0f84a314d76ace60a62331e1b84%7C0%7C0%7C637992863653204275%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=aiBOxqQsZI1Mc1vF3tDW5skxG7dTAw2J0ZOCvnJdJFc%3D&reserved=0
PLEASE do read the posting guide https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.r-project.org%2Fposting-guide.html&data=05%7C01%7Ctebert%40ufl.edu%7C8fab207eca574151439308da9b2115b3%7C0d4da0f84a314d76ace60a62331e1b84%7C0%7C0%7C637992863653360508%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dFIosQzsmHgaofIKXLjVlEOcHUSlSpchBhyr%2BMMKJiU%3D&reserved=0
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list