How to visualize data from for loop using ggplot2

Hello rhonano,

It's difficult to understand what your code is doing as it appears you're using functions mvrnorm and compute_efficient_frontier which seems to be self-defined or part from an unknown package.

Could you please provide a reprex as explained below, so that we can assist you better?