Description Usage Arguments Value Examples
Utilizes ggplot's tile geom to construct heatmaps for calendar dates
1 | calendar_plot(data, date, n, low = "#a7b5c3", high = "red")
|
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 |
calendar heatmap plot
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.