Description Usage Arguments Details Examples
Function for plotting LLE results either in static or in dynamic way.
1 2 |
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 |
angle |
(if |
inter |
a logical values indicating wheather to use interactive 3D-plots. See rgl. |
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.
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 )
|
Loading required package: scatterplot3d
Loading required package: MASS
Loading required package: snowfall
Loading required package: snow
finding neighbours
calculating weights
computing coordinates
Loading required package: rgl
NULL
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.