[R] incompatible dimensions error

2020-08-24 Thread Andrew Halford
al=nrow(fish05),xvmult=100,which=4,pca=TRUE) The tree is produced no problem but it wont produce a PCA. I am just keen to understand what this error means as I dont see anything unusual about the dataset used, notwithstanding the data is rather messy. Andy -- Andrew Halford Ph.D Senior C

[R] Fwd: defining group colours in a call to rda

2020-08-04 Thread Andrew Halford
-- Forwarded message - From: Abby Spurdle Date: Wed, Aug 5, 2020 at 3:07 PM Subject: Re: [R] defining group colours in a call to rda To: Andrew Halford Hi Andrew, Perhaps you want this: cols <- rep_len (c ("red", "green", "blue", &quo

[R] defining group colours in a call to rda

2020-08-04 Thread Andrew Halford
and leaves the rest uncoloured. The call to MI_fish_all.mrt$where gives... [1] 3 3 8 6 6 9 5 5 9 3 8 6 9 6 5 9 5 3 8 6 9 6 5 9 5 3 3 8 6 6 9 5 5 9 6 9 5 9. These are the split groupings for all 39 sites in the analysis and there are 5 numbers corresponding to 5 final leaves in the tree. I

Re: [R] multiple graphs on one plot

2019-05-14 Thread Andrew Halford
ot;, col=c("dark gray", "light gray"), > breaks=seq(90,210, by=10),beside=TRUE,space=c(0,0.5)) > legend("topright", c("Females", "Males"), fill=c("dark gray", "light > gray")) > lines(seq(0,32,length.out=121),

[R] multiple graphs on one plot

2019-05-12 Thread Andrew Halford
quot;, col="dark gray") Even trying to add an abline to the plot doesn't work. What am I missing? cheers Andy -- Andrew Halford Ph.D Senior Coastal Fisheries Scientist Pacific Community | Communauté du Pacifique CPS – B.P. D5 | 98848 Noumea, New Caledonia | Nouméa, Nouvelle-Calédonie

[R] spatial analysis using quickPCNM

2017-01-23 Thread Andrew Halford
e to compute PCNMs = 0.82 sec Error in if (temp2.test[1, 5] <= alpha) { : argument is of length zeroTiming stopped at: 1.06 0.05 1.19 I do not understand the error message coming up and would appreciate some advice. Andy -- Andrew Halford Ph.D Research Scientist (Kimberley Marine Parks) Dep

Re: [R] grImport/ghostscript problems

2013-08-14 Thread Andrew Halford
12:10, Andrew Halford andrew.half...@gmail.com wrote: Hi Listers I have been trying to import a .ps graphic file into R using the grImport package but I keep getting the following error message Error in PostScriptTrace(fish.ps) : status 127 in running command 'gswin32c.exe -q -dBATCH

Re: [R] grImport/ghostscript problems

2013-08-13 Thread Andrew Halford
\AppData\Local\Temp\Rtmp6BOVDe\fileffc30613d6 -sstdout=fish.ps.xml capturefish.ps' Any advice appreciated. Andy -- Andrew Halford Ph.D Adjunct Research Scientist University of Guam Curtin University Ph: +61 (0) 468 419 473 [[alternative HTML version deleted

[R] extracting x and y coordinates from rnorm

2013-08-12 Thread Andrew Halford
package I am using. Andy -- Andrew Halford Ph.D Adjunct Research Scientist University of Guam Curtin University Ph: +61 (0) 468 419 473 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] loop for calculating 1-se in rpart

2012-12-07 Thread Andrew Halford
splits for tree,xlab= no. of optimal tree splits, ylab= frequency) Any help appreciated. Andy -- Andrew Halford Ph.D Adjunct Research Scientist University of Guam Curtin University Ph: +61 (0) 468 419 473 [[alternative HTML version deleted

[R] plotting issues with PCA

2011-10-17 Thread Andrew Halford
cant get the lines to colour code the same way as the points did ordiellipse(graph,site.codings,kind=sd,conf=0.90,draw=polygon) I see there is a command called show.groups but I cant work out how to use it to access the plotcolor file. Any help appreciated. -- Andrew Halford Ph.D Associate

[R] plot 3d info in 2d

2011-08-10 Thread Andrew Halford
axes would be larger while sites that are actually further away in 3 d space would be proportionally smaller. any help/advice appreciated Andy -- Andrew Halford Ph.D Associate Research Scientist Marine Laboratory University of Guam Ph: +1 671 734 2948 [[alternative HTML version deleted

[R] reflecting a PCA biplot

2011-08-09 Thread Andrew Halford
appreciated. cheers Andy -- Andrew Halford Ph.D Associate Research Scientist Marine Laboratory University of Guam Ph: +1 671 734 2948 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] ordiellipse

2011-05-25 Thread Andrew Halford
assuming that 2 points is not enough to perform the relevant calculations here, however I would like to plot one if I could, if only for the sake of pictorial consistency. Andy -- Andrew Halford Ph.D Associate Research Scientist Marine Laboratory University of Guam Ph: +1 671 734 2948

[R] which multivariate regression?

2011-02-07 Thread Andrew Halford
for variation in one of the EVs affecting others. I appreciate any help I can get, -- Andrew Halford Ph.D Associate Research Scientist Marine Laboratory University of Guam Ph: +1 671 734 2948 [[alternative HTML version deleted]] __ R-help@r-project.org

[R] goodness-of-fit test

2010-11-11 Thread Andrew Halford
(gf) : Chi-squared approximation may be incorrect Am I getting caught out because of zero counts or frequencies in my data? Andy -- Andrew Halford Ph.D Associate Research Scientist Marine Laboratory University of Guam Ph: +1 671 734 2948 [[alternative HTML version deleted

[R] penalized regression analysis

2010-10-25 Thread Andrew Halford
at lambda1 = 356.0856 L2 penalty = 234.7781 at lambda2 = 3.458605 coefficients (fitfinal) (Intercept)BC POC EXPFI 4.685739e+01 2.074521e-01 1.079459e-01 -1.373058e-05 -2.295339e+00 cheers Andy -- Andrew Halford Ph.D Associate

Re: [R] repeating an analysis

2010-10-18 Thread Andrew Halford
UC Berkeley spec...@stat.berkeley.edu On Wed, 13 Oct 2010, Andrew Halford wrote: Hi All, I have to say upfront that I am a complete neophyte when it comes to programming. Nevertheless I enjoy the challenge of using R because

Re: [R] repeating an analysis

2010-10-13 Thread Andrew Halford
Department of Statistics UC Berkeley spec...@stat.berkeley.edu On Wed, 13 Oct 2010, Andrew Halford wrote: Hi All, I have to say upfront that I am a complete neophyte

[R] repeating an analysis

2010-10-12 Thread Andrew Halford
-- Andrew Halford Associate Researcher Marine Laboratory University of Guam Ph: +1 671 734 2948 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide