This makes a mean-variance plot of the portfolio output. It can take care of: plotting the individual portfolios, adding 2D kernel density polygons at two quantile levels, and adding an efficient frontier.
plot_cons_plans(plans_mv, plans_name, cols, xlim = NULL, ylim = NULL,
add_pts = TRUE, add_all_efs = FALSE, x_axis = TRUE, y_axis = TRUE,
add_legend = TRUE, legend_pos = "topright", w_show = "all",
xlab = "Variance", ylab = "Mean", add_poly = TRUE, ...)
The plans_mv
element of the output
from run_cons_plans
.
A character vector of what to label each conservation plan.
Colours for the conservation plan polygons.
X limits
Y limits
Logical: add the points?
Logical: add efficient frontiers?
Logical: add x axis?
Logical: add y axis?
Logical: add y legend?
A character string to pass to
legend
denoting the position of
the legend.
If "all"
then all plans will be
shown. If a numeric vector, then those plans will be
shown. E.g. c(1, 3)
will only show the first and
third plans.
X axis label.
Y axis label.
Anything else to pass to
plot.default
.
Add the kernal smoother quantile polygons?
A plot. Also, the x and y limits are returned invisibly as a list. This makes it easy to make the first plot and then save those x and y limits to fix them in subsequent (multipanel) plots.