scale_MDS: Scales MDS results Scales MDS results of trees for each...

View source: R/scale_MDS.R

scale_MDSR Documentation

Scales MDS results Scales MDS results of trees for each distance so that all coordinates for each axis and distance are between -1 and 1.

Description

Scales MDS results Scales MDS results of trees for each distance so that all coordinates for each axis and distance are between -1 and 1.

Usage

scale_MDS(df, n, group_var = "method", x_dim = "MDS1", y_dim = "MDS2")

Arguments

df

A dataframe with the first two MDS coordinates for a set of trees and distances.

n

The number of trees in the dataframe.

group_var

The name of the variable within the dataframe that specifies the distance.

x_dim

The name of the variable within the dataframe that specifies the value on the x axis.

y_dim

The name of the variable within the dataframe that specifies the value on the y axis.

Value

A scaled version of the original dataframe.


svteichman/TreeVizPackage documentation built on June 22, 2022, 11:21 p.m.