Last chance! 50% off unlimited learning
Sale ends in
Returns the coordinates of a set of points when orthogonally projected on a new axis.
coord.proj(coord,slp)
2-column data frame or matrix giving the original coordinates (left column: x, right column: y).
slope of the new axis.
Maxime HERVE <maxime.herve@univ-rennes1.fr>
data(iris)
# Original coordinates
plot(Petal.Length~Sepal.Length,pch=16,col=as.numeric(iris$Species),data=iris)
# New axis
abline(-6,1.6)
# Coordinates on new axis
new.coord <- coord.proj(iris[,c("Sepal.Length","Petal.Length")],1.6)
stripchart(new.coord~Species,data=iris,col=1:3)
Run the code above in your browser using DataLab