Giter Site home page Giter Site logo

nhkcovid's Introduction

nhkcovid

The goal of nhkcovid is to …

Installation

You can install the development version of nhkcovid from GitHub with:

# install.packages("devtools")
devtools::install_github("oryoto/nhkcovid")

Example

This is a basic example which shows you how to solve a common problem:

library(nhkcovid)

nhkcovid_origin <-
read_data(
  .dir = here::here("inst/extdata"),
  .ptn = "nhk_news",
  .f = readr::read_csv
)
nhkcovid
#> # A tibble: 44,368 x 15
#>    date       rmean7 tokyo tokyo_r~1
#>    <date>      <dbl> <dbl>     <dbl>
#>  1 2020-01-16      0     0         0
#>  2 2020-01-17      0     0         0
#>  3 2020-01-18      0     0         0
#>  4 2020-01-19      0     0         0
#>  5 2020-01-20      0     0         0
#>  6 2020-01-21      0     0         0
#>  7 2020-01-22      0     0         0
#>  8 2020-01-23      0     0         0
#>  9 2020-01-24      0     1         0
#> 10 2020-01-25      0     1         0
#> # ... with 44,358 more rows, 11
#> #   more variables:
#> #   tokyo_power <dbl>, wday <ord>,
#> #   pref_code <chr>, jpref <chr>,
#> #   case_day <dbl>, case_cum <dbl>,
#> #   death_day <dbl>,
#> #   death_cum <dbl>, ...
library(ggplot2)

gdp2018_full |>
  ggplot(aes(tokyo_power_cv, value)) +
  geom_smooth(method = "lm") +
  geom_point() +
  labs(
    x = "東京倍率",
    y = "県民経済計算"
  ) +
  scale_y_continuous(labels = scales::comma)+
  theme_bw() +
    facet_wrap(~gdp, scales = "free_y")
#> `geom_smooth()` using formula 'y ~ x'
#> Warning: Removed 11 rows containing
#> non-finite values (stat_smooth).
#> Warning: Removed 11 rows containing
#> missing values (geom_point).

nhkcovid's People

Contributors

oryoto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.