library(finlabR)
#> Registered S3 method overwritten by 'quantmod':
#> method from
#> as.zoo.data.frame zoomin_var <- mvo_min_variance(rets)
ef <- mvo_efficient_frontier(rets, n = 30, rf = 0.02)
max_sharpe <- mvo_max_sharpe(rets, rf = 0.02)plot_efficient_frontier(ef)
#> Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
#> ℹ Please use `linewidth` instead.
#> ℹ The deprecated feature was likely used in the finlabR package.
#> Please report the issue to the authors.
#> This warning is displayed once per session.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
#> generated.