render_proj_inter {lionfish} | R Documentation |
Modification of the 'render_proj' Function of 'tourr'
Description
Modification of the render_proj() function of tourr so that the half_range is calculated with max(sqrt(rowSums(data^2))) or can be provided as argument.
Usage
render_proj_inter(
data,
prj,
half_range = NULL,
axis_labels = NULL,
obs_labels = NULL,
limits = 1,
position = "center"
)
Arguments
data |
matrix, or data frame containing numeric columns, should be standardized to have mean 0, sd 1 |
prj |
projection matrix |
half_range |
for scaling in the display, by default calculated from the data |
axis_labels |
of the axes to be displayed |
obs_labels |
labels of the observations to be available for interactive mouseover |
limits |
value setting the lower and upper limits of projected data, default 1 |
position |
position of the axes: center (default), bottomleft or off |
Value
list containing projected data, circle and segments for axes
Examples
library(tourr)
data("flea", package = "tourr")
flea_std <- apply(flea[,1:6], 2, function(x) (x-mean(x))/sd(x))
prj <- tourr::basis_random(ncol(flea[,1:6]), 2)
p <- render_proj_inter(flea_std, prj)
[Package lionfish version 1.0.27 Index]