Software Open Access

reconhub/incidence: Incidence version 1.7.0

Thibaut Jombart; Zhian N. Kamvar; Jun Cai; Juliet Pulliam; Sarah Chisholm; Rich FitzJohn; Jakob Schumacher; Sangeeta Bhatia


DCAT Export

<?xml version='1.0' encoding='utf-8'?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:adms="http://www.w3.org/ns/adms#" xmlns:cnt="http://www.w3.org/2011/content#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:dctype="http://purl.org/dc/dcmitype/" xmlns:dcat="http://www.w3.org/ns/dcat#" xmlns:duv="http://www.w3.org/ns/duv#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:frapo="http://purl.org/cerif/frapo/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:gsp="http://www.opengis.net/ont/geosparql#" xmlns:locn="http://www.w3.org/ns/locn#" xmlns:org="http://www.w3.org/ns/org#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:prov="http://www.w3.org/ns/prov#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:schema="http://schema.org/" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:vcard="http://www.w3.org/2006/vcard/ns#" xmlns:wdrs="http://www.w3.org/2007/05/powder-s#">
  <rdf:Description rdf:about="https://doi.org/10.5281/zenodo.2593716">
    <rdf:type rdf:resource="http://www.w3.org/ns/dcat#Dataset"/>
    <dct:type rdf:resource="http://purl.org/dc/dcmitype/Software"/>
    <dct:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">https://doi.org/10.5281/zenodo.2593716</dct:identifier>
    <foaf:page rdf:resource="https://doi.org/10.5281/zenodo.2593716"/>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Thibaut Jombart</foaf:name>
        <org:memberOf>
          <foaf:Organization>
            <foaf:name>Imperial College London</foaf:name>
          </foaf:Organization>
        </org:memberOf>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Zhian N. Kamvar</foaf:name>
        <org:memberOf>
          <foaf:Organization>
            <foaf:name>Imperial College London</foaf:name>
          </foaf:Organization>
        </org:memberOf>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Jun Cai</foaf:name>
        <org:memberOf>
          <foaf:Organization>
            <foaf:name>Tsinghua University</foaf:name>
          </foaf:Organization>
        </org:memberOf>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Juliet Pulliam</foaf:name>
        <org:memberOf>
          <foaf:Organization>
            <foaf:name>Stellenbosch University</foaf:name>
          </foaf:Organization>
        </org:memberOf>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Sarah Chisholm</foaf:name>
        <org:memberOf>
          <foaf:Organization>
            <foaf:name>Public Health England</foaf:name>
          </foaf:Organization>
        </org:memberOf>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Rich FitzJohn</foaf:name>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Jakob Schumacher</foaf:name>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Sangeeta Bhatia</foaf:name>
        <org:memberOf>
          <foaf:Organization>
            <foaf:name>Imperial College London</foaf:name>
          </foaf:Organization>
        </org:memberOf>
      </rdf:Description>
    </dct:creator>
    <dct:title>reconhub/incidence: Incidence version 1.7.0</dct:title>
    <dct:publisher>
      <foaf:Agent>
        <foaf:name>Zenodo</foaf:name>
      </foaf:Agent>
    </dct:publisher>
    <dct:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">2019</dct:issued>
    <dct:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2019-03-14</dct:issued>
    <owl:sameAs rdf:resource="https://zenodo.org/record/2593716"/>
    <adms:identifier>
      <adms:Identifier>
        <skos:notation rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">https://zenodo.org/record/2593716</skos:notation>
      </adms:Identifier>
    </adms:identifier>
    <dct:relation rdf:resource="https://github.com/reconhub/incidence/tree/1.7.0"/>
    <dct:isVersionOf rdf:resource="https://doi.org/10.5281/zenodo.1404718"/>
    <owl:versionInfo>1.7.0</owl:versionInfo>
    <dct:description>Incidence can now handle standardised weeks starting on any day thanks to the &lt;a href="https://www.repidemicsconsortium.org/aweek"&gt;&lt;code&gt;aweek&lt;/code&gt;&lt;/a&gt; package :tada: &lt;pre&gt;&lt;code class="lang-r"&gt;library(incidence) library(ggplot2) library(cowplot) d &amp;lt;- as.Date(&amp;quot;2019-03-11&amp;quot;) + -7:6 setNames(d, weekdays(d)) #&amp;gt; Monday Tuesday Wednesday Thursday Friday #&amp;gt; &amp;quot;2019-03-04&amp;quot; &amp;quot;2019-03-05&amp;quot; &amp;quot;2019-03-06&amp;quot; &amp;quot;2019-03-07&amp;quot; &amp;quot;2019-03-08&amp;quot; #&amp;gt; Saturday Sunday Monday Tuesday Wednesday #&amp;gt; &amp;quot;2019-03-09&amp;quot; &amp;quot;2019-03-10&amp;quot; &amp;quot;2019-03-11&amp;quot; &amp;quot;2019-03-12&amp;quot; &amp;quot;2019-03-13&amp;quot; #&amp;gt; Thursday Friday Saturday Sunday #&amp;gt; &amp;quot;2019-03-14&amp;quot; &amp;quot;2019-03-15&amp;quot; &amp;quot;2019-03-16&amp;quot; &amp;quot;2019-03-17&amp;quot; imon &amp;lt;- incidence(d, &amp;quot;mon week&amp;quot;) # also ISO week itue &amp;lt;- incidence(d, &amp;quot;tue week&amp;quot;) iwed &amp;lt;- incidence(d, &amp;quot;wed week&amp;quot;) ithu &amp;lt;- incidence(d, &amp;quot;thu week&amp;quot;) ifri &amp;lt;- incidence(d, &amp;quot;fri week&amp;quot;) isat &amp;lt;- incidence(d, &amp;quot;sat week&amp;quot;) isun &amp;lt;- incidence(d, &amp;quot;sun week&amp;quot;) # also MMWR week and EPI week pmon &amp;lt;- plot(imon, show_cases = TRUE, labels_week = FALSE) ptue &amp;lt;- plot(itue, show_cases = TRUE, labels_week = FALSE) pwed &amp;lt;- plot(iwed, show_cases = TRUE, labels_week = FALSE) pthu &amp;lt;- plot(ithu, show_cases = TRUE, labels_week = FALSE) pfri &amp;lt;- plot(ifri, show_cases = TRUE, labels_week = FALSE) psat &amp;lt;- plot(isat, show_cases = TRUE, labels_week = FALSE) psun &amp;lt;- plot(isun, show_cases = TRUE, labels_week = FALSE) &lt;/code&gt;&lt;/pre&gt; &lt;pre&gt;&lt;code class="lang-r"&gt;s &amp;lt;- scale_x_date(limits = c(as.Date(&amp;quot;2019-02-26&amp;quot;), max(d) + 7L)) plot_grid( pmon + s, ptue + s, pwed + s, pthu + s, pfri + s, psat + s, psun + s) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;/p&gt; multi-weeks/months/years can now be handled &lt;pre&gt;&lt;code class="lang-r"&gt;library(incidence) library(outbreaks) d &amp;lt;- ebola_sim_clean$linelist$date_of_onset h &amp;lt;- ebola_sim_clean$linelist$hospital &lt;/code&gt;&lt;/pre&gt; &lt;pre&gt;&lt;code class="lang-r"&gt;plot(incidence(d, interval = &amp;quot;1 epiweek&amp;quot;, group = h)) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;/p&gt; &lt;pre&gt;&lt;code class="lang-r"&gt;plot(incidence(d, interval = &amp;quot;2 epiweeks&amp;quot;, group = h)) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;/p&gt; &lt;pre&gt;&lt;code class="lang-r"&gt;plot(incidence(d, interval = &amp;quot;3 epiweeks&amp;quot;, group = h)) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;/p&gt; &lt;pre&gt;&lt;code class="lang-r"&gt;plot(incidence(d, interval = &amp;quot;2 months&amp;quot;, group = h)) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;&amp;lt;sup&amp;gt;Created on 2019-03-14 by the [reprex package](https://reprex.tidyverse.org) (v0.2.1)&amp;lt;/sup&amp;gt;&lt;/p&gt; Full set of changes NEW FEATURES &lt;ul&gt; &lt;li&gt;Any interval &lt;code&gt;seq.Date()&lt;/code&gt; can handle (e.g. "5 weeks") can be handled by &lt;code&gt;incidence()&lt;/code&gt; (see &lt;a href="https://github.com/reconhub/incidence/issues/67"&gt;https://github.com/reconhub/incidence/issues/67&lt;/a&gt;)&lt;/li&gt; &lt;li&gt;Weekly intervals can start on any day of the week by allowing things like "epiweek", "isoweek", "wednesday week", "2 Saturday weeks", etc. (see &lt;a href="https://github.com/reconhub/incidence/issues/55#issuecomment-405297526"&gt;https://github.com/reconhub/incidence/issues/55#issuecomment-405297526&lt;/a&gt;)&lt;/li&gt; &lt;li&gt;the item &lt;code&gt;$weeks&lt;/code&gt; is now added to the incidence object, which contains an "aweek" class&lt;/li&gt; &lt;li&gt;plotting will now force the first tick to be the starting point of the incidence curve&lt;/li&gt; &lt;/ul&gt; NEW FUNCTIONS &lt;ul&gt; &lt;li&gt;&lt;code&gt;make_breaks()&lt;/code&gt; will automatically calculate breaks from an incidence object for plotting. &lt;/li&gt; &lt;li&gt;&lt;code&gt;scale_x_incidence()&lt;/code&gt; will produce a ggplot2 "ScaleContinuous" object to add to a ggplot.&lt;/li&gt; &lt;/ul&gt; DEPRECATED &lt;ul&gt; &lt;li&gt;&lt;code&gt;plot.incidence()&lt;/code&gt; argument &lt;code&gt;labels_iso&lt;/code&gt; is deprecated in favor of &lt;code&gt;labels_week&lt;/code&gt;&lt;/li&gt; &lt;li&gt;Incidence objects will still have &lt;code&gt;$isoweeks&lt;/code&gt; if the weeks are ISO 8601 standard, but users should rely intead on &lt;code&gt;$weeks&lt;/code&gt; instead. The &lt;code&gt;$isoweeks&lt;/code&gt; element will be removed in a future version of incidence.&lt;/li&gt; &lt;li&gt;&lt;code&gt;as.incidence()&lt;/code&gt; argument &lt;code&gt;isoweeks&lt;/code&gt; has been deprecated in favour of &lt;code&gt;standard&lt;/code&gt;&lt;/li&gt; &lt;/ul&gt; DEPENDENCIES &lt;ul&gt; &lt;li&gt;ISOweek import changed to &lt;a href="https://www.repidemicsconsortium.org/aweek"&gt;aweek&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; Documentation &lt;ul&gt; &lt;li&gt;Vignettes have been updated with examples.&lt;/li&gt; &lt;/ul&gt;</dct:description>
    <dct:accessRights rdf:resource="http://publications.europa.eu/resource/authority/access-right/PUBLIC"/>
    <dct:accessRights>
      <dct:RightsStatement rdf:about="info:eu-repo/semantics/openAccess">
        <rdfs:label>Open Access</rdfs:label>
      </dct:RightsStatement>
    </dct:accessRights>
    <dcat:distribution>
      <dcat:Distribution>
        <dcat:accessURL rdf:resource="https://doi.org/10.5281/zenodo.2593716"/>
      </dcat:Distribution>
    </dcat:distribution>
  </rdf:Description>
</rdf:RDF>
79
47
views
downloads
All versions This version
Views 7912
Downloads 472
Data volume 245.6 MB11.1 MB
Unique views 5912
Unique downloads 211

Share

Cite as