Giter Club home page Giter Club logo

ggtime's Introduction

ggtime

Lifecycle: experimental CRAN status

The ggtime package provides tools for graphically analysing time series, with exploration of trend and seasonality. It utilises the tsibble data format for time series and produces plots with ggplot2.

Installation

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

# install.packages("remotes")
remotes::install_github("tidyverts/ggtime")

Example

library(ggtime)
library(tsibble)
#> 
#> Attaching package: 'tsibble'
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, union
tsibbledata::aus_production %>% 
  autoplot(Bricks)
#> Warning: Removed 20 rows containing missing values (`geom_line()`).

ggtime's People

Contributors

mitchelloharawild avatar

Stargazers

 avatar Andrew Allen Bruce avatar Eric R. Scott avatar Johannes Breuer avatar  avatar Owain  gaunders avatar

Watchers

Rob J Hyndman avatar Kostas Georgiou avatar

ggtime's Issues

coord calendar

Use a wrapped cartesian coordinate system to plot temporal data in calendar like layouts instead of calculated variables (e.g. https://github.com/cynthiahqy/ggtilecal)

Should support:

  • week in year layout with month line breaks;
  • faceted months, years
  • position after each wrap point -- 0 for over plot, 1, -1 for direction
  • ragged layout
  • split rendering of geometries across rows (maybe not possible in ggplot2)
  • most other geoms out of the box (e.g. moon phases which calendR has options for)

Needs:

  • Wrap point helpers similar to lubridate::floor_date() Gregorian calendar
  • hack grouping to fix rendering limitations (for portals!)

Stretch goal -- wrapping non-gregorian calendar layouts:

  • needs different datetime rounding system:
    • helpers for specifying "floor" functions e.g. floor_date_lunar()
    • return the nearest wrapping points
    • wrapping points via sequence generator OR lookup table

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.