coord.proj | R Documentation |
Returns the coordinates of a set of points when orthogonally projected on a new axis.
coord.proj(coord,slp)
coord |
2-column data frame or matrix giving the original coordinates (left column: x, right column: y). |
slp |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.