[R] "spreadsheet" in plot

Henrique Dallazuanna wwwhsd at gmail.com
Tue Apr 22 00:10:48 CEST 2008


Try this:

library(gplots) #after install.packages("gplots")
m <- matrix(sample(9), 3)
matplot(m, type='l')
par(fig = c(0.5, 1,  0, 0.5), new = T)
textplot(m, show.rownames = F, show.colnames = F, cex = 0.9)


On 4/21/08, Stephan Ripke <ripke at mpipsykl.mpg.de> wrote:
> Hello,
> how can I print a table (lets say my table xtable contains 3 rows and 3
> Columns, the fileds consists of text) directly in a plot? when I use
> mtext(xtable), he tries to write everything on the same place.
> Thank you in advance,
> Stephan
>
> --
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list