calendar: Trend Calendar Heat Map.

Description Usage Arguments Value Examples

View source: R/calendar.R

Description

calendar function will draw Calendar Heat Map for Trend analysis.

Usage

1
calendar(data, time, value, title = NULL, subtitle = NULL, caption = NULL)

Arguments

data

input data.frame

time

time variable

value

value variable

title

main title

subtitle

subtitle

caption

caption

Value

An object of class ggplot

Examples

1
2
3
4
5
6
7
8
#Prepare data
df <- read.csv("https://raw.githubusercontent.com/selva86/datasets/master/yahoo.csv")
df$date <- as.Date(df$date)  # format date
df <- df[df$year >= 2012, ]  # filter years

#calendar
plot<- calendar(data=df,time="date",value="VIX.Close")
plot

HeeseokMoon/ggedachart documentation built on Dec. 31, 2020, 12:59 p.m.