search for: textxy

Displaying 7 results from an estimated 7 matches for "textxy".

2012 Jun 19
1
help with xy.coords(x,y)
...uys could spare some time helping me out with the R code. Thanks. The senario is: i applied BOXPLOT() 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 = po...
2009 Oct 28
2
Labelling individual points on 3D PCA scatterplot
Hi There, I'm attempting to plot 10 values on a three-dimensional PCA with text labels next to each point. While i have no trouble doing this on 2D plots using the 'text' or 'textxy' function, I cannot find a function to do this on a 3D plot. I am using princomp for my PCA: >PCA<-princomp(eucdata, cor=TRUE) >PCA$scores [,1:3] # the three principal components i want to plot Then i am using 'scatterplot3d' to plot my first 3 principal components: >...
2018 Apr 20
1
Further questions
...for your quick help. I have two further questions: 1) In the graph of a regression line I would like to show one specific residual yi obs - yi pred (let's take the person whose residual is 76). How do I add a bracket to this vertical distance and name it? I'am getting stuck after the "textxy" function. Age <- c(39, 47, 45, 47, 65, 46, 67, 42, 67, 56, 64, 56, 59, 34, 42, 48, 45, 17, 20, 19, 36, 50, 39, 21, 44, 53, 63, 29, 25, 69) BloodPressure <- c(144, 220, 138, 145, 162, 142, 170, 124, 158, 154, 162, 150, 140, 110, 128, 130, 135, 114, 116, 124, 136, 142, 120, 120, 160, 15...
2012 Jun 14
1
Help for boxplot
...ough it produced these 5 box plot, while the Y-aix has all the 10 strategy labels. *So the FIRST QUESTION is how to eliminate the other 5 strategies on the Y-aix? * Next, I used the POINTS() to plot the performance of specific funds in the related box plot, which are from the portfolio. and used TEXTXY() to label its name. #label portfolio funds for(i in 1:T){ #loop through all strategies #get strategy 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...
2012 Oct 23
1
scatterplot with wrong line offset
...ot;calibrate") G_T<-c("car","bike","boat") ave<-c(80,10,45) perf<-c(100,80,75) df2<-data.frame(G_T,ave,perf) scatterplot(ave ~ perf, data=df2,smoother=FALSE,xlim=c(0,100),ylim=c(0,100)) textxy(df2$perf,df2$ave, df2$G_T) #The wrong offset begin here. grid() lines(x=c(0,40),y=c(20,20),type="l") #---------------------------------------------------------Code end--------------------------------------------- Here is the plot: <http://r.789695.n4.nabble.com/file/n4647202/Offset_S...
2010 May 02
3
adding year information to a scatter plot
Hi R users, I would like to add year information to each point in a scatter plot. The following example shows what i mean: df=data.frame(year=c(2001,2002,2003),a=c(8,9,7),b=c(100,90,95)) df plot(b~a,data=df) Now, I would like to see which point belongs to 2001, 2002 and 2003 in the above graphic. Thank you very much, ozan [[alternative HTML version deleted]]
2012 Nov 24
3
How to Label Cases in Scatterplots?
Hi everyone, i?m trying to graphically display distributions with r and i?m working with makrodata from the WVS. the command i?m using is > plot (Makrodata$v11, Makrodata$v12, xlab="Democracy Score Economist", > ylab= share religious people") i?m having an additional variable that identifies respectively labels the