Skip to contents

Plot payout curves (highcharts)

Usage

plot_tick(data, title = NA, subtitle = NA, rowheight = 200, ...)

Arguments

data

output of wc_price at 1 trigger location (single contract)

title

chart title

subtitle

chart subtitle

rowheight

Height in px.

...

Arguments passed on to hc_themed

hc

a highchart object

label

optional annotation

base_font

default font for all chart elements

axes

show axes (default: TRUE)

exporting

include chart export menu (default: TRUE)

credits

include credits (default: FALSE)

args

pricing arguments

Examples

pts <- data.table(loc_id=1, X=30, Y=-17, day="2020-12-01")
#> Error in data.table(loc_id = 1, X = 30, Y = -17, day = "2020-12-01"): could not find function "data.table"
args <- wc_args(pts, product="MAIZ-ZWE-05-CB01", code="rfe")
#> Error in wc_args(pts, product = "MAIZ-ZWE-05-CB01", code = "rfe"): could not find function "wc_args"
data <- wc_price(args=args)
#> Error in wc_price(args = args): could not find function "wc_price"
plot_tick(data, args)
#> Error in unique(period): object 'period' not found