Re: [R] R News, volume 7, issue 1 is now available --error in AMMI article

2007-04-26 Thread John Fox
Dear Yuandan,

My attention was drawn by your claim of an error in AMMI article.

As you say, the code for the AMMI function is given directly in the article.
If the argument biplot is equal to 1, then a biplot is drawn by the
function, as is apparent from the section of code labelled ## 5 - Biplots.

Why is this an error?

Regards,
 John


John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Lux Zhang
 Sent: Thursday, April 26, 2007 1:38 AM
 To: R-help; [EMAIL PROTECTED]
 Subject: Re: [R] R News, volume 7,issue 1 is now available 
 --error in AMMI article
 
 Hi,
 
 In this newsletter (Vol 7, 1),the article on AMMI by Onofri 
 and Ciriofolo presented a AMMI function.  One of arguments 
 for this function AMMI (Page
 17) is biplot. There is a biplot fucntion from  {stats} 
 package.  I guess they are not the same. Could the authors 
 clarify that?
 
 Thanks,
 
 Yuandan
 
   [[alternative HTML version deleted]]
 
 __
 R-help@stat.math.ethz.ch 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.


__
R-help@stat.math.ethz.ch 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.


Re: [R] R News, volume 7, issue 1 is now available --error in AMMI article

2007-04-26 Thread Lux Zhang
On 26/04/07, John Fox [EMAIL PROTECTED] wrote:

 Dear Yuandan,

 My attention was drawn by your claim of an error in AMMI article.

 As you say, the code for the AMMI function is given directly in the
 article.
 If the argument biplot is equal to 1, then a biplot is drawn by the
 function, as is apparent from the section of code labelled ## 5 -
 Biplots.

 Why is this an error?



when loading this AMMI function, at the line if (biplot == 1) { , R seems
treating the 'biplot' as a subject, the biplot function from stats package,
inseatd of treating it as argument for the AMMI function.

here is the error messenge when I load it

 source (AMMI.R)
Error in parse(file, n = -1, NULL, ?) : syntax error at
51: ( bplot == 1 ) {
52: plot(1, type =


Regards,
 John

 
 John Fox, Professor
 Department of Sociology
 McMaster University
 Hamilton, Ontario
 Canada L8S 4M4
 905-525-9140x23604
 http://socserv.mcmaster.ca/jfox
 

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Lux Zhang
  Sent: Thursday, April 26, 2007 1:38 AM
  To: R-help; [EMAIL PROTECTED]
  Subject: Re: [R] R News, volume 7,issue 1 is now available
  --error in AMMI article
 
  Hi,
 
  In this newsletter (Vol 7, 1),the article on AMMI by Onofri
  and Ciriofolo presented a AMMI function.  One of arguments
  for this function AMMI (Page
  17) is biplot. There is a biplot fucntion from  {stats}
  package.  I guess they are not the same. Could the authors
  clarify that?
 
  Thanks,
 
  Yuandan
 
[[alternative HTML version deleted]]
 
  __
  R-help@stat.math.ethz.ch 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.
 




[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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.


Re: [R] R News, volume 7, issue 1 is now available --error in AMMI article

2007-04-26 Thread Lux Zhang
On 26/04/07, Lux Zhang [EMAIL PROTECTED] wrote:



 On 26/04/07, John Fox [EMAIL PROTECTED] wrote:
 
  Dear Yuandan,
 
  My attention was drawn by your claim of an error in AMMI article.
 
  As you say, the code for the AMMI function is given directly in the
  article.
  If the argument biplot is equal to 1, then a biplot is drawn by the
  function, as is apparent from the section of code labelled ## 5 -
  Biplots.
 
  Why is this an error?



 when loading this AMMI function, at the line if (biplot == 1) { , R
 seems treating the 'biplot' as a subject, the biplot function from stats
 package, inseatd of treating it as argument for the AMMI function.

 here is the error messenge when I load it

  source (AMMI.R)
 Error in parse(file, n = -1, NULL, ?) : syntax error at
 51: ( bplot == 1 ) {
 52: plot(1, type =


Sorry, I had another look, it seems something to do with
plot (1, type = 'n' ... [ i copy this code from the pdf file]

after change it to

plot (1, type = n ... as below

  if ( biplot == 1 ) {
plot(1, type = n, xlim = range(c(envir.mean, var.mean)), ylim =
range(c(E[,1], G[,1])), xlab = Yield,

lt was loaded.





Regards,
  John
 
  
  John Fox, Professor
  Department of Sociology
  McMaster University
  Hamilton, Ontario
  Canada L8S 4M4
  905-525-9140x23604
  http://socserv.mcmaster.ca/jfox
  
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] ] On Behalf Of Lux Zhang
   Sent: Thursday, April 26, 2007 1:38 AM
   To: R-help; [EMAIL PROTECTED]
   Subject: Re: [R] R News, volume 7,issue 1 is now available
   --error in AMMI article
  
   Hi,
  
   In this newsletter (Vol 7, 1),the article on AMMI by Onofri
   and Ciriofolo presented a AMMI function.  One of arguments
   for this function AMMI (Page
   17) is biplot. There is a biplot fucntion from  {stats}
   package.  I guess they are not the same. Could the authors
   clarify that?
  
   Thanks,
  
   Yuandan
  
 [[alternative HTML version deleted]]
  
   __
   R-help@stat.math.ethz.ch 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.
  
 
 
 


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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.


Re: [R] R News, volume 7, issue 1 is now available --error in AMMI article

2007-04-26 Thread John Fox
Dear Yuandan,

The function definition given in the article doesn't produce an error for
me.

Regards,
 John


John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
 

 -Original Message-
 From: Lux Zhang [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 26, 2007 7:56 AM
 To: John Fox
 Cc: R-help
 Subject: Re: [R] R News, volume 7,issue 1 is now available 
 --error in AMMI article
 
 
 
 On 26/04/07, Lux Zhang [EMAIL PROTECTED] wrote:
 
 
 
   On 26/04/07, John Fox [EMAIL PROTECTED]  wrote:
 
   Dear Yuandan,
   
   My attention was drawn by your claim of an 
 error in AMMI article.
   
   As you say, the code for the AMMI function is 
 given directly in the article.
   If the argument biplot is equal to 1, then a 
 biplot is drawn by the 
   function, as is apparent from the section of 
 code labelled ## 5 - Biplots.
   
   Why is this an error?
 
 
 
   when loading this AMMI function, at the line if 
 (biplot == 1) { , R seems treating the 'biplot' as a 
 subject, the biplot function from stats package, inseatd of 
 treating it as argument for the AMMI function. 
   
   
   here is the error messenge when I load it
   
source (AMMI.R)
   Error in parse(file, n = -1, NULL, ?) : syntax error at
   51: ( bplot == 1 ) {
   52: plot(1, type = 
 
 
 Sorry, I had another look, it seems something to do with plot 
 (1, type = 'n' ... [ i copy this code from the pdf file]
 
 after change it to 
 
 plot (1, type = n ... as below 
 
   if ( biplot == 1 ) {
 plot(1, type = n, xlim = range(c(envir.mean, 
 var.mean)), ylim = range(c(E[,1], G[,1])), xlab = Yield,
 
 lt was loaded. 
 
 
 
  
 
 
   
 
   Regards,
   John
   
    
   John Fox, Professor
   Department of Sociology
   McMaster University
   Hamilton, Ontario
   Canada L8S 4M4
   905-525-9140x23604
   http://socserv.mcmaster.ca/jfox 
 http://socserv.mcmaster.ca/jfox 
    
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto: [EMAIL PROTECTED] ] 
 On Behalf Of Lux Zhang
Sent: Thursday, April 26, 2007 1:38 AM
To: R-help; [EMAIL PROTECTED] 
Subject: Re: [R] R News, volume 7,issue 1 is 
 now available 
--error in AMMI article
   
Hi,
   
In this newsletter (Vol 7, 1),the article on 
 AMMI by Onofri
and Ciriofolo presented a AMMI function.  One 
 of arguments
for this function AMMI (Page 
17) is biplot. There is a biplot fucntion 
 from  {stats}
package.  I guess they are not the same. 
 Could the authors
clarify that?
   
Thanks,
   
Yuandan
   
  [[alternative HTML version deleted]] 
   
__
R-help@stat.math.ethz.ch 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. 
   
   
   
   
 
 
 


__
R-help@stat.math.ethz.ch 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.


Re: [R] R News, volume 7, issue 1 is now available --error in AMMI article

2007-04-26 Thread Duncan Murdoch
On 4/26/2007 7:55 AM, Lux Zhang wrote:
 On 26/04/07, Lux Zhang [EMAIL PROTECTED] wrote:



 On 26/04/07, John Fox [EMAIL PROTECTED] wrote:
 
  Dear Yuandan,
 
  My attention was drawn by your claim of an error in AMMI article.
 
  As you say, the code for the AMMI function is given directly in the
  article.
  If the argument biplot is equal to 1, then a biplot is drawn by the
  function, as is apparent from the section of code labelled ## 5 -
  Biplots.
 
  Why is this an error?



 when loading this AMMI function, at the line if (biplot == 1) { , R
 seems treating the 'biplot' as a subject, the biplot function from stats
 package, inseatd of treating it as argument for the AMMI function.

 here is the error messenge when I load it

  source (AMMI.R)
 Error in parse(file, n = -1, NULL, ?) : syntax error at
 51: ( bplot == 1 ) {
 52: plot(1, type =

 
 Sorry, I had another look, it seems something to do with
 plot (1, type = 'n' ... [ i copy this code from the pdf file]
 
 after change it to
 
 plot (1, type = n ... as below
 
   if ( biplot == 1 ) {
 plot(1, type = n, xlim = range(c(envir.mean, var.mean)), ylim =
 range(c(E[,1], G[,1])), xlab = Yield,
 
 lt was loaded.

I would guess you used an editor that replaced the ASCII single quotes 
with some other similar looking character.  For example, if I fire up my 
ancient copy of Word 97 (it still works!  amazing!) and try to type

X - 'n'

(using 0x27 chars for quotes) what actually gets entered is

X - ‘n’

which is a syntax error, as it's using 0x91 and 0x92 instead.

Duncan Murdoch

__
R-help@stat.math.ethz.ch 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.


[R] R News, volume 7, issue 1 is now available

2007-04-25 Thread Torsten Hothorn

Hi

The October 2006 issue of R News is now available on CRAN under the
Documentation/Newsletter link.

Torsten
(on behalf of the R News Editorial Board)

___
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-announce

__
R-help@stat.math.ethz.ch 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.


Re: [R] R News, volume 7, issue 1 is now available

2007-04-25 Thread Earl F. Glynn
Torsten Hothorn [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

 The October 2006 issue of R News is now available on CRAN under the
 Documentation/Newsletter link.

Direct links are useful:

R News
http://cran.r-project.org/doc/Rnews/

April 2007 Issue:
http://cran.r-project.org/doc/Rnews/Rnews_2007-1.pdf

efg

__
R-help@stat.math.ethz.ch 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.


Re: [R] R News, volume 7, issue 1 is now available

2007-04-25 Thread Romain Francois
Earl F. Glynn wrote:
 Torsten Hothorn [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
   
 The October 2006 issue of R News is now available on CRAN under the
 Documentation/Newsletter link.
 

 Direct links are useful:

 R News
 http://cran.r-project.org/doc/Rnews/

 April 2007 Issue:
 http://cran.r-project.org/doc/Rnews/Rnews_2007-1.pdf

 efg
   
... And maybe the TOC:

Editorial

Viewing Binary Files with the hexView Package
FlexMix: An R Package for Finite Mixture Modelling
Using R to Perform the AMMI Analysis on Agriculture Variety Trials
Inferences for Ratios of Normal Means
Working with Unknown Values
A New Package for Fitting Random Effect Models
Augmenting R with Unix Tools
POT: Modelling Peaks Over a Threshold
Backtests

Review of John Verzani’s Book Using R for Introductory Statistics
DSC 2007
New Journal: Annals of Applied Statistics
Forthcoming Events: useR! 2007
Changes in R 2.5.0
Changes on CRAN
R Foundation News
R News Referees 2006


-- 
Mango Solutions
data analysis that delivers

Tel:  +44(0) 1249 467 467
Fax:  +44(0) 1249 467 468
Mob:  +44(0) 7813 526 123

__
R-help@stat.math.ethz.ch 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.


Re: [R] R News, volume 7, issue 1 is now available --error in AMMI article

2007-04-25 Thread Lux Zhang
Hi,

In this newsletter (Vol 7, 1),the article on AMMI by Onofri and Ciriofolo
presented a AMMI function.  One of arguments for this function AMMI (Page
17) is biplot. There is a biplot fucntion from  {stats} package.  I guess
they are not the same. Could the authors clarify that?

Thanks,

Yuandan

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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.