Re: [R] Creating rectangular plots with x and y coordinates and treatments from a matrix for a randomized block design

2013-09-23 Thread Laz
Thanks. Sweave/Latex is done the job for me ! Regards, Laz On 9/22/2013 8:26 PM, jim holtman wrote: CHeck out the 'tables' package if you want to create pretty outputs of your tables. Exactly where do you plan to use them? You can also use Sweave/Latex to create such tables. Jim Holtman

Re: [R] Creating rectangular plots with x and y coordinates and treatments from a matrix for a randomized block design

2013-09-22 Thread jim holtman
Is this what you were after: ## A function to generate a RCB design rcbd-function(b,g,rb,cb,r,c) + { +# b =number of blocks +# g = a vector of treatments +# rb = number of rows per blocks +# cb =number of columns per block +# r = total rows +# c = total columns +

Re: [R] Creating rectangular plots with x and y coordinates and treatments from a matrix for a randomized block design

2013-09-22 Thread Laz
Thanks Jim, What you have done is very good. I was wondering if we could draw some horizontal and vertical lines to separate the blocks. Is it possible using R? Regards, Laz On 9/22/2013 11:10 AM, jim holtman wrote: Is this what you were after: ## A function to generate a RCB design

Re: [R] Creating rectangular plots with x and y coordinates and treatments from a matrix for a randomized block design

2013-09-22 Thread Rolf Turner
On 09/23/13 07:52, Laz wrote: SNIP I was wondering if we could draw some horizontal and vertical lines to separate the blocks. Is it possible using R? SNIP See fortune(Yoda). :-) cheers, Rolf Turner __ R-help@r-project.org mailing list

Re: [R] Creating rectangular plots with x and y coordinates and treatments from a matrix for a randomized block design

2013-09-22 Thread Laz
Is Yoda an R package? I tried: install.packages(Yoda) Warning in install.packages : package 'Yoda' is not available (for R version 3.0.1) Warning in install.packages : package 'Yoda' is not available (for R version 3.0.1) How do I proceed from here? Regards, Laz On 9/22/2013 4:21 PM,

Re: [R] Creating rectangular plots with x and y coordinates and treatments from a matrix for a randomized block design

2013-09-22 Thread Rui Barradas
Hello, No, 'Yoda' is not a package, the package is 'fortunes': library(fortunes) # load it in the R session fortune(Yoda) Or, if you don't want to load the package, fortunes::fortune(Yoda) Rui Barradas Em 22-09-2013 21:32, Laz escreveu: Is Yoda an R package? I tried:

Re: [R] Creating rectangular plots with x and y coordinates and treatments from a matrix for a randomized block design

2013-09-22 Thread Laz
Hi, fortune(Yoda) returns a quote of fortunes. My problem was to draw horizontal and vertical lines to separate the blocks in my design. Each block has 4 elements. The first and second rows and columns are in block 1, 3rd and 4th rows and 1st and 2nd columns are in 3 etc [,1] [,2]

Re: [R] Creating rectangular plots with x and y coordinates and treatments from a matrix for a randomized block design

2013-09-22 Thread jim holtman
CHeck out the 'tables' package if you want to create pretty outputs of your tables. Exactly where do you plan to use them? You can also use Sweave/Latex to create such tables. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how

[R] Creating rectangular plots with x and y coordinates and treatments from a matrix for a randomized block design

2013-09-21 Thread Laz
Dear R users, I have a function I created to generate randomized block designs given below. Once I generate the design, I would like to plot it in a rectangular form to mimic the excel style where the blocks are represented with the treatment values placed exactly where their appropriate X

[R] Creating rectangular plots with x and y coordinates and treatments from a matrix for a randomized block design

2013-09-21 Thread Laz
Dear R users, I have a function I created to generate randomized block designs given below. Once I generate the design, I would like to plot it in a rectangular form to mimic the excel style where the blocks are represented with the treatment values placed exactly where their appropriate