Re: [R] Barplot+Table

2009-09-23 Thread Marc Schwartz
On Sep 23, 2009, at 3:51 PM, Andy Choens wrote: Marc Schwartz wrote: Using the data that is in the online plot rather than the above, here is a first go. Note that I am not drawing the background grid in the barplot or the lines for table below it. These could be added if you really need them.

Re: [R] Barplot+Table

2009-09-23 Thread Andy Choens
Marc Schwartz wrote: >Using the data that is in the online plot rather than the above, here >is a first go. Note that I am not drawing the background grid in the >barplot or the lines for table below it. These could be added if you >really need them. Note: I snipped out the syntax from Marc'

Re: [R] Barplot+Table

2009-09-23 Thread gunksta
Marc Schwartz-3 wrote: > > Using the data that is in the online plot rather than the above, here > is a first go. Note that I am not drawing the background grid in the > barplot or the lines for table below it. These could be added if you > really need them. > Note: I snipped out the syn

Re: [R] Barplot+Table

2009-09-12 Thread gunksta
Marc Schwartz-3 wrote: > > Using the data that is in the online plot rather than the above, here > is a first go. Note that I am not drawing the background grid in the > barplot or the lines for table below it. These could be added if you > really need them. > > > > HTH, > > Marc Schw

Re: [R] Barplot+Table

2009-09-11 Thread Marc Schwartz
On Sep 11, 2009, at 1:20 PM, Andy Choens wrote: I am trying to automate a report that my company does every couple of years for the state of Maine. In the past we have used SPSS to run the data and then used complicated Excel template to make the tables/graphics which we then imported into

Re: [R] Barplot+Table

2009-09-11 Thread Andy Choens
On Friday 11 September 2009 02:47:32 pm Henrique Dallazuanna wrote: > Try the textplot function in the gplots package: Thank you. That definitely gives me a direction to pursue. It doesn't look like there is an easy way to make things line up though, which is unfortunate but I'm sure it's possib

Re: [R] Barplot+Table

2009-09-11 Thread Henrique Dallazuanna
Try the textplot function in the gplots package: nf <- layout(matrix(1:2), height = lcm(12)) par(mar = c(2, 8, 2, 2)) barplot(prop.table(example.table, 1), beside = TRUE) textplot(round(prop.table(example.table, 1), 2), halign = 'left', mar = c(0,0,0,0), show.colnames = FALSE, cex = 2,

[R] Barplot+Table

2009-09-11 Thread Andy Choens
I am trying to automate a report that my company does every couple of years for the state of Maine. In the past we have used SPSS to run the data and then used complicated Excel template to make the tables/graphics which we then imported into Word. Since there are 256 tables/graphics for this re