vrmlgen-package {vrmlgen} | R Documentation |
vrmlgen translates 3D point data, i.e. a numerical matrix with 3 columns and n rows, into a visual representation in the Virtual Reality Markup Language (VRML, file type .wrl) or alternatively, in the LiveGraphics3D format. Supported visualization methods are 3D scatter plots, meshes, bar charts, graphs and density estimation contour surfaces.
Package: | vrmlgen |
Type: | Package |
Version: | 1.2 |
Date: | Date: 2009-10-12 |
License: | GPL (>= 2) |
LazyLoad: | yes |
URL: | http://www.cs.nott.ac.uk/~egg/vrmlgen |
Enrico Glaab
e.glaab@cs.nott.ac.uk
# create 33x3 matrix with random 3D input data mat <- matrix(runif(99, 0, 3), ncol=3) # create random class assignment vector with three classes y <- round(runif(33, 0, 2)) y <- ifelse(y == 0, "class 1", ifelse(y == 1, "class 2", "class 3")) # create ouput using numbers from 1 to length(y) as metalabels vcloud(mat, y, metalabels=1:length(y), col.axis="black", col.lab="blue", col.bg="white")