[R] print table on plot
Jim Lemon
jim at bitwrit.com.au
Fri Apr 27 10:47:34 CEST 2012
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
More information about the R-help
mailing list