On 04/26/2012 11:26 PM, statquant2 wrote:
Hello,
I would like to be able to plot an array on a plot, something like:
         |arg1  | arg2 | arg3
val1| 0.9    | 1.1    | 2.4
val2| 0.33  | 0.23 | -1.4
val3| hello| stop | test
I know Rwave is good to report but don't want to use it.

? Is there a package that allow quick and dirty plot of dataframes like this
?

Hi statquant2,
Well, there is:

tablemat<-matrix(c(0.9,1.1,2.4,0.33,0.23,-1.4,"hello","stop","test"),
 ncol=3)
rownames(tablemat)<-c("val1","val2","val3")
colnames(tablemat)<-c("arg1","arg2","arg3")
plot(5:1)
library(plotrix)
addtable2plot(3,4,tablemat,vlines=TRUE,display.rownames=TRUE)

Jim

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to