knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library('plotivol')
This is a collection of examples generated with plotivol package. This section illustrates how to use the function plotImpiedVol.
The basic use of plotImpliedVol only requires a data frame.
plotImpliedVol(df)
No plots are created.
plotImpliedVol(df, plotting=FALSE)
The user can display results for only calls or only puts.
plotImpliedVol(df, type='call')
The user can see volatility curves by strike, moneyness or delta.
plotImpliedVol(df, style='delta')
In this example, the user requires only puts by delta
plotImpliedVol(df, type='call', style='delta')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.