Select Page

Black-Scholes Option Pricing in R

The Black-Scholes or Black-Scholes-Merton model is a financial mathematical equation for pricing options contracts and other derivatives. Fischer Black and Myron Scholes published the formula in their 1973 paper “The Pricing of Options and Corporate...

How to Solve R Error: unexpected ‘}’ in “}”

This error occurs when you have a closing curly bracket in your code without a corresponding opening curly bracket. You can solve this error by finding the position in your code that requires an opening bracket. This tutorial will go through how to solve the error...

How to Remove Legend in ggplot2

You can remove a legend from a plot using the syntax legend.position=”none” for the plot theme. For example, library(ggplot2) ggplot(data = mtcars, aes(x = mpg, y = disp, color = vs)) + geom_point() + theme(legend.position=”none”) This tutorial...