Learn R Programming

pandemonium (version 0.2.4)

userCoords: User defined coordinate function

Description

Allows the use of externally calculated coordinates in the app. Can only be used when variables are not reassigned between the two spaces.

Usage

userCoords(user_coords)

Value

function that returns the user defined coordinates user_coords

Arguments

user_coords

coordinate matrix the size of the space it will be used on

Details

Externally calculated coordinates can be used through userCoords or as input data with rawCoords used as the coordinate function. The use of userCoords over rawCoords is in the treatment of input data. As pandemonium displays the input data in many plots the use of coordinates as input data will result in these plots being less meaningful for interpretation. Use userCoords where coordinates are necessary to calculate distances but interpretation from plots of clustering space is necessary.

Examples

Run this code
if (FALSE) { # interactive()
pandemonium(df = Bikes$space1, space2 = Bikes$space2,
              coords = list(normalised = normCoords, space2 = userCoords(Bikes$space2)))

}

Run the code above in your browser using DataLab