calendar_plot: Time Series Calendar Heatmap plot

Description Usage Arguments Value Examples

Description

Utilizes ggplot's tile geom to construct heatmaps for calendar dates

Usage

1
calendar_plot(data, date, n, low = "#a7b5c3", high = "red")

Arguments

data

data containing the values you want to plot

date

name of date column

n

name of column with the numerical amount to grade plot

low

color on low gradient

high

color of high gradient

Value

calendar heatmap plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
library(quantmod)
library(dplyr)
library(tbl2xts)

getSymbols("JSE:WHL", src = "google")

stock <- `JSE:WHL`

stock <- xts_tbl(stock)
  
stock %>% filter(date > "2016-01-01") %>% 
  calendar_plot(date, JSE.WHL.Volume)

stock %>% filter(date > "2016-01-01") %>% 
  calendar_plot(date, JSE.WHL.Volume, low = "#a7b5c3")

HanjoStudy/quotidieR documentation built on May 5, 2019, 6:13 p.m.