Wednesday, October 27, 2010

R: Biplot (generic)

# I can't get the variables in to a matrix directly. Why? If I knew why, i would fix it. So bear with this.

# put variables of interest into a dataframe:
neo <- data.frame(infile$dep.var1,infile$dep.var2)
agt.smith <- data.frame(infile$indep.var1,infile$indep.var2)

# now put it in a matrix:
x <- as.matrix(neo)
y <- as.matrix(agt.smith)

# and here's the plot:
biplot(x,y)

# for more details: ?biplot

# /* END OF BIPLOTS */

No comments:

Post a Comment