My original question was:-
I have a small matrix which I want to show as a 3D 'barplot'. It can be done
from the
GUI (if you first 'stretch' the matrix to become a data.frame), but I need
something
I can program into a function.
Something similar to persp, but without the fitted surface and with a simple
box for
each cell of the matrix would be ideal. I've tried Statlib etc., to no
avail. Any ideas out
there in S land ?
thanks ..................... Bob Kinley (Eli Lilly&Co , Liverpool UK))
PS I will find it a worrying precedent if it turns out that functionality
available from the
GUI is not available from the command line; the thin end of the wedge
........ ?
Replies:-
Several replies advised against using 3D barplots in general, due to the
difficulty in interpreting them - probably true unless the matrix is small.
No-one had a routine written in the low-level plotting commands, which was
what
I was really looking for.
Some advised creating the plot from the GUI and obtaining the code from the
history
file, but when I did this nothing was written to the history file (maybe my
settings need
changing).
I eventually found a bit in the Programmers's Guide p161+ which tells you all
about
guiCreate. Using the command
guiCreate("SurfacePlot",xValues=FVrank$I,
yValues=FVrank$J,zValues=FVrank$sim,DrawBars=T)
I was able to reproduce the gui output from the command line (and hence from a
function),
after changing the matrix into a dataframe with 1 row per matrix-cell.
Haven't found a nice way of labelling the axes yet, but I bet it's in there
somewhere.
cheers Bob
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|