Displaying 2 results from an estimated 2 matches for "fundname".
Did you mean:
funcname
2012 Jun 19
1
help with xy.coords(x,y)
...to plot the performance of all hedge funds with 7
strategies.
And right now in this boxplot I need to plot the points of 30 individual
hedge funds from my portfolio. And I applied POINTS() and TEXTXY() to label
these points.
There are 30 funds in my portfolio with 7 different strategies.
"FundName"(fundNames), "fundStrats", "Return"(fundrets)
Here is my code:
for(i in 1:T){
# T equals to the amount of strategies in my portfolio
strat = portStrats[i];
#get strategy
portidx = fundStrats == strat;
# identify portfolio funds of th...
2012 Jun 14
1
Help for boxplot
...gy
strat = portStrats[i];
#identify all funds of that strategy
idx = allFundStrats == strat;
#get returns of the all funds
rets = allFundRets[idx];
#identify portfolio funds of the same strategy
portidx = fundStrats == strat;
#get returns and names
frets = fundrets[portidx];
fnames = fundNames[portidx];
N = length(frets);
#now figure out where to put the labels
s = 1 / N;
for (j in 1:N){
yy = j * s + i*2;
points(x=frets[j],y=yy,col="red");
textxy(X=frets[j]*-1,Y=yy,labs=fnames[j]);
}
}
*The ERROR is Error in xy.coords(x, y) : 'x' and 'y'...