historical_plot {rpredictit} | R Documentation |
Plot historical contract data obtained from the 'PredictIt' website
Description
Function to make an interactive
dygraphs::dygraph
plot of historical
contract data.
Usage
historical_plot(contract_data)
Arguments
contract_data |
Named list containing contract name and data of class
|
Value
Interactive dygraphs::dygraph
plot
containing time series data for contract 'close' prices.
Examples
filename <- "What_will_be_the_balance_of_power_in_Congress_after_the_2020_election.csv"
csv_path <- system.file("extdata", filename, package = "rpredictit")
contract_data <- parse_historical_csv(csv_path)
historical_plot(contract_data)
[Package rpredictit version 0.1.0 Index]