coord.proj: Coordinates of projected points

coord.projR Documentation

Coordinates of projected points

Description

Returns the coordinates of a set of points when orthogonally projected on a new axis.

Usage

coord.proj(coord,slp)

Arguments

coord

2-column data frame or matrix giving the original coordinates (left column: x, right column: y).

slp

slope of the new axis.

Author(s)

Maxime HERVE <maxime.herve@univ-rennes1.fr>

Examples

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)

RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.