-
-
Save zachlim98/85af79cfd383a705a37a19bc98e5ba16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plottest <- as.data.frame(putPrice) %>% | |
mutate(ix = 1:nrow(gbm)) %>% | |
pivot_longer(-ix, names_to = 'sim', values_to = 'price') | |
plottest %>% | |
ggplot(aes(x=ix, y=price, color=sim)) + | |
geom_line() + | |
labs(x="Days", y="Price", title="1000 Simulations of AAPL 122.5 Put Price") + | |
coord_cartesian( | |
xlim = NULL, | |
ylim = c(0,25), | |
expand = TRUE, | |
default = FALSE, | |
clip = "on" | |
) + | |
theme(legend.position = 'none') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment