pl.mv {YRmisc}R Documentation

Plot mean-variance simulation result

Description

This function is used to plot the result of portfolio simulation by pt.mv().

Usage

pl.mv(port)

Arguments

port

:portfolio simulation result from pt.mv()

Examples

set.seed(1)
rtn <- data.frame(runif(120,-1,1),runif(120,-1,1),runif(120,-1,1),runif(120,-1,1))
names(rtn) <- c("asset1","asset2","asset3","asset4")
portfolio <- pt.hismv(rtn,1000,0)
pl.mv(portfolio)

[Package YRmisc version 0.1.6 Index]