Usage
lbar(data, row.labels = rownames(data),
col.labels = colnames(data), filename = "out.m", space = 0.5,
cols = rainbow(length(as.matrix(data))), rcols = NULL,
ccols = NULL, scalefac = 4, lab.axis = c("X-axis",
"Y-axis", "Z-axis"), col.axis = "black", showaxis = TRUE,
col.lab = "white", col.bg = "white", cex.lab = 1.0,
cex.rowlab = 1.0, cex.collab = 1.0, ambientlight = 0.5,
htmlout = NULL, hwidth = 1200, hheight = 800, showlegend = TRUE)
Arguments
data
a numerical matrix with 3 columns and n rows
row.labels
a vector containing the row labels
(strings or numbers)
col.labels
a vector containing the column labels
(strings or numbers)
filename
filename of the generated VRML output file
space
space between single bars in a bar plot (as a
fraction of the average bar width)
cols
a vector of colors to visualize different classes
among the data points. The number of colors should be at least
as large as the number of different labels (i.e. length(col)
>= length(unique(labels))
rcols
specifies the bar colors per row of the
input matrix. The number of colors must correspond to the
numbers of rows of the data matrix.
ccols
specifies the bar colors per column of the
input matrix. The number of colors must correspond to the
numbers of columns of the data matrix.
scalefac
a scaling factor for the size of the 3D box in
which the data will be visualized
lab.axis
a vector of size 3 containing the axis
labels
col.axis
color of the axis
showaxis
if FALSE, the coordinate axes are hidden in
the output
col.lab
a vector of colors specifying the axis labels
cex.lab
scaling factor for axis label font size
cex.rowlab
scaling factor for matrix row labels font
size
cex.collab
scaling factor for matrix column labels
font size
ambientlight
ambient light gray level (between 0 and 1)
htmlout
a filename for generating an HTML-file to embed the VRML-output
hwidth
width of the embedded VRML-display in the HTML-output
hheight
height of the embedded VRML-display in the HTML-output
showlegend
a logical value indicating whether a legend should
be drawn on the plot