Re: [R] plotting with a table right under it

2008-09-28 Thread Jim Lemon
david8373 wrote: Hi guys, I'm new to R and this might be a basic question. I want to have a plot with a table right under it containing all the data in the plot. Is that possible in R? How do to it? Hi Yuhan, Try this: library(plotrix) par(mfrow=c(2,1)) x-rnorm(10) y-rnorm(10) plot(x,y)

[R] plotting with a table right under it

2008-09-27 Thread david8373
Hi guys, I'm new to R and this might be a basic question. I want to have a plot with a table right under it containing all the data in the plot. Is that possible in R? How do to it? Thanks! Yuhan -- View this message in context:

Re: [R] plotting with a table right under it

2008-09-27 Thread Yihui Xie
R is Not Excel, I think... But if you insist on drawing a table below the graph, you may use rect() and text(). Why not add your numbers directly to your bars/lines/points/...? If you can express the information in a table, why use a plot? Regards, Yihui -- Yihui Xie [EMAIL PROTECTED] Phone: