# plot_lle: Plot LLE results In lle: Locally linear embedding

## Description

Function for plotting LLE results either in static or in dynamic way.

## Usage

 1 2  plot_lle( Y, X, print = FALSE, col = 3, name = as.numeric(Sys.time()), angle = 60, inter = FALSE ) 

## Arguments

 Y matrix object with calculated embedded data. X matrix object with original data. print a logical values indicating wheather to plot the graphical results to a file. col string or number dtermining the plotting colours. name (if print==true) filename. angle (if inter==false) angle between x- and y-axis in scatterplot3d. See documentation of scatterplot3d. inter a logical values indicating wheather to use interactive 3D-plots. See rgl.

## Details

col determines the way that the points in the plot are coloured. Choosing a string name of a colour leads to a monocoloured plot. Choosing a number between leads to a colour gradient plot build up by N colours (taking only the rainbow colours into account). Choosing a numeric vector with length N leads to points coloured respecting to the values in the vector (for unique colours only values between 0 and 600 should be used).
If inter==false, two plots are generated in one window. The left plot is the plot of the original data. These will only be plotted if n \in \{1,2,3\}. The right plot shows the embedded data. These will only be plotted m \in \{1,2,3\}.
if inter==true, one interactive plot of the embedded data will be shown. This plot can be scrolled and zoomed. It requires OpenGL drivers.

## Examples

 1 2 3 4  data( lle_scurve_data ) X <- lle_scurve_data Y <- lle( X, m=2, k=12 )\$Y plot_lle( Y, X, FALSE, col="red", inter=TRUE ) 

lle documentation built on May 2, 2019, 2:49 p.m.