Skip to contents

Used as interface to generate a specific graph seen when using the GUI. Settings include: metric, linkage, k, plotType

Usage

makePlots(
  space1,
  settings,
  cov = NULL,
  covInv = NULL,
  exp = NULL,
  space2 = NULL,
  space2.cov = NULL,
  space2.covInv,
  space2.exp = NULL,
  user_dist = NULL,
  getCoordsSpace1 = normCoords,
  getCoordsSpace2 = normCoords,
  getScore = NULL
)

Arguments

space1

dataframe of variables in cluster space

settings

list specifying parameters usually selected in the app

cov

covariance matrix for space 1

covInv

inverse covariance matrix for space 1

exp

reference point in space 1

space2

dataframe of variables in linked space

space2.cov

covariance matrix for space 2

space2.covInv

inverse covariance matrix for space 2

space2.exp

reference point in space 2

user_dist

user defined distances

getCoordsSpace1

function to calculate coordinates in space 1

getCoordsSpace2

function to calculate coordinates in space 2

getScore

function to calculate scores and bins

Value

ggplot, plotly or detourr plot depending on settings$plotType