Re: [R] I'd like to request that my R CRAN package is not tested on Solaris OS

2021-10-29 Thread Kevin Wright
Lampros, You can use Rhub for testing packages on various platforms. I had a similar issue to you...I had a tiny bug that was only failing on M1mac. I was able to resolve it by repeatedly testing my package on Rhub. Here's how I did that: https://github.com/kwstat/nipals/issues/5 Kevin Wright

Re: [ESS] [External] Re: Function to copy command to script?

2020-05-19 Thread Kevin Wright via ESS-help
to something.r. > For that I would just highlight it, then copy and paste. > > Rich > > On Tue, May 19, 2020 at 12:14 PM Stephen Eglen via ESS-help < > ess-help@r-project.org> wrote: > >> >> On Tue, May 19 2020, Kevin Wright via wrote: >> >> >

[ESS] Function to copy command to script?

2020-05-19 Thread Kevin Wright via ESS-help
Is there a function to copy an inferior-buffer R command back to the R script and insert it at point? -- Kevin Wright [[alternative HTML version deleted]] __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

[ESS] Anyone tried Emacs 27.1 pretest with Windows 10 ?

2020-05-05 Thread Kevin Wright via ESS-help
I've tried the latest Emacs 27.1 pre-test on Windows 10 with ESS. I've been getting freezes of Emacs when I'm working with R code buffers. Happens sporadically, but locks up Emacs so that I have to kill the process. Anybody else tried Emacs 27.1 ? -- Kevin Wright [[alternative HTML

Re: [ESS] Prevent new buffer for help from point

2020-02-06 Thread Kevin Wright via ESS-help
; > > -- > James W. MacDonald, M.S. > Biostatistician > University of Washington > Environmental and Occupational Health Sciences > 4225 Roosevelt Way NE, # 100 > Seattle WA 98105-6099 > > [[alternative HTML version deleted]] > > __ > ESS-hel

Re: [R] Stratifying data with xyplot

2019-03-11 Thread Kevin Wright
___ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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, reproducibl

Re: [ESS] Trouble evaluating in namespace

2018-12-20 Thread Kevin Wright via ESS-help
ays: > > Note that when inside a package and namespaced evaluation is in place > (see > ‘ess-r-set-evaluation-env’) evaluation of multiline input will fail. > > >> On Thu, Dec 06 2018 16:07, Kevin Wright via ESS-help wrote: > > > (ess-inject-source nil) > > No

[ESS] Trouble evaluating in namespace

2018-12-06 Thread Kevin Wright via ESS-help
ight be relevant: (ess-eval-visibly t) (ess-inject-source nil) Any help would be appreciated. -- Kevin Wright [[alternative HTML version deleted]] __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

[ESS] Printing tibbles in iESS

2018-12-04 Thread Kevin Wright via ESS-help
nate0 rs_ltht AY2 2018 194.510.4 It appears that after each data type (e.g. ) is a space and then a newline character (^J). I've dug into the tibble package, then pillar, then fansi, but I'm still stuck. Can anybody explain what is happening? -- Kevin Wright

[ESS] flymake + lintr

2018-10-25 Thread Kevin Wright via ESS-help
tors. a=1+1 ~^~ Anybody have ideas for diagnosing what the problem is? Kevin Wright -- Kevin Wright [[alternative HTML version deleted]] __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

Re: [ESS] Fwd: Default for ess-roxy-str

2018-10-25 Thread Kevin Wright via ESS-help
hash ## two hash ### three hash #' rox one hash ##' rox two hash Note the line with one hash is indented, but not the roxygen one-hash line. So I think Alex is right, that this is historical and it would now be safe to set ess-roxy-str default to #' Kevin On Thu, Oct 25, 2018 at 11:37 AM Alex Br

[ESS] Fwd: Default for ess-roxy-str

2018-10-25 Thread Kevin Wright via ESS-help
Is there some reason that the default value of ess-roxy-str is ##' instead of the usual #' ? Could the default value be changed? See an example here: https://cran.r-project.org/web/packages/roxygen2/vignettes/rd.html -- Kevin Wright [[alternative HTML version deleted

[R] [R-pkgs] New package: nipals

2017-12-22 Thread Kevin Wright
-project.org/web/packages/nipals/vignettes/nipals_optimization.html Please report any issues through the Github page: https://github.com/kwstat/nipals Kevin Wright -- Kevin Wright [[alternative HTML version deleted]] ___ R-packages mailing list r

[R] rgl crash on windows 7

2017-09-28 Thread Kevin Wright
3.4/httpuv/libs/x64/httpuv.dll TRUE mime c:/kw/R/win-library/3.4/mime/libs/x64/mime.dll TRUE rgl c:/kw/R/win-library/3.4/rgl/libs/x64/rgl.dll FALSE Can I manually load the DLLs and then load rgl? Any tips on how to proceed would be appreciated. -- Kevin Wri

Re: [ESS] crayon package with ESS?

2017-09-14 Thread Kevin Wright
r") [1] "\033[90msilver\033[39m" But the high-intensity colors are not supported by ansi-color.el, at least by default. Someone has created a fix for this by extending the colors. See https://oleksandrmanzyuk.wordpress.com/2011/11/24/better-emacs-shell-part-ii/ I have not tried this to se

Re: [ESS] crayon package with ESS?

2017-09-13 Thread Kevin Wright
in gray. Kevin Wright On Wed, Sep 13, 2017 at 6:50 PM, Kevin Wright <kw.s...@gmail.com> wrote: > > Has anyone successfully used the R package "crayon" for colored text > inside Emacs? The package claims to work with ESS: > https://cran.r-project.org/web/packages/c

[ESS] crayon package with ESS?

2017-09-13 Thread Kevin Wright
be caused by this code in the has_color function: isatty(stdout()) # returns FALSE. Why not TRUE? Maybe my inferior terminal settings aren't quite right... Or maybe the problem is with Windows... -- Kevin Wright [[alternative HTML version deleted]]

Re: [R] About MC simulation of AR1 model in R

2017-03-03 Thread Kevin Wright
Try this example to simulate AR1xAR1 variance structure. Kevin Wright library(mvtnorm) library(asreml) set.seed(300) nr <- 10; nc <- 8 # number of rows and columns colcor <- .9 # correlation for columns, rows rowcor <- .1 sigAR <- diag(nr) sigAR <- rowcor^ abs(row(sigAR) -

Re: [R] ASReml-R lack of documentation

2017-03-03 Thread Kevin Wright
Patrick, The asreml (VSNi) forum seems to still be working with a few posts every month: https://www.vsni.co.uk/forum/viewforum.php?f=7 Kevin Wright On Mon, Feb 27, 2017 at 2:29 AM, Patrick Connolly < p_conno...@slingshot.co.nz> wrote: > Has anyone had any success contac

Re: [R] Add annotation text outside of an xyplot (lattice package)

2016-09-28 Thread Kevin Wright
. The R code showing how this works is here: https://github.com/kwstat/pagenum/blob/master/R/pagenum.r Kevin Wright On Thu, Sep 22, 2016 at 9:04 AM, Jun Shen <jun.shen...@gmail.com> wrote: > Dear list, > > Just wonder if there is a way to add annotation text outside an xyplot, >

[R] Problems trying to generate a prime factor vector

2015-12-03 Thread Kevin Wright
Hi, I am very new to 'R' and am trying to write an R function which returns the prime factors of a given number(n) Unfortunately, the function only works for very small numbers, if for example I pass 18 to the function a mysteriously long vector is returned. I have not been able to find where or

Re: [R] (no subject)

2015-10-30 Thread Kevin Wright
thz.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. > -- Kevin Wright [[alternative HTML version deleted]] ___

Re: [R] Lattice: raw data and prediction of a non linear fitted function

2015-08-06 Thread Kevin Wright
and then use latticeExtra to combine layers. Kevin Wright On Wed, Aug 5, 2015 at 7:24 AM, François Collin fanch.col...@gmail.com wrote: Dear all, I have a question about lattice use. I would like to use it to represent: - my raw data as points, - and the results of a non linear fit as a line

Re: [R] How to add error bars to a line xyplot (lattice package)

2015-01-28 Thread Kevin Wright
-7374 Data is not information. Information is not knowledge. And knowledge is certainly not wisdom. Clifford Stoll On Tue, Jan 27, 2015 at 2:56 PM, Kevin Wright kw.s...@gmail.com wrote: See segplot in the latticeExtra package. Kevin On Mon, Jan 26, 2015 at 7:58 PM, Jun Shen jun.shen

Re: [R] How to add error bars to a line xyplot (lattice package)

2015-01-27 Thread Kevin Wright
-- To UNSUBSCRIBE and more, see 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. -- Kevin Wright __ R-help@r

[R] How do I really, I mean really, unload a package?

2014-09-24 Thread Kevin Wright
Sorry if this is well-known, but I can't find an answer or maybe just don't know how to ask Google the right question. If I run the following code in R (3.1.1), I find that lattice:::xyplot.formula is still available (or maybe just a promise to it ... ???) even though I've used detach and

Re: [R] How do I really, I mean really, unload a package?

2014-09-24 Thread Kevin Wright
Ah, here is the answer from the man page for ::: ...pkg:::name returns the value of the internal variable name. The namespace will be loaded if it was not loaded before the call, but the package will not be attached to the search path. Kevin On Wed, Sep 24, 2014 at 1:56 PM, Kevin Wright kw.s

Re: [R] How do I really, I mean really, unload a package?

2014-09-24 Thread Kevin Wright
/30791.html In that sense, it appears that it is not possible to completely undo the loading of a package. Thanks to Bill Dunlap and Professor Ripley. Kevin Wright On Wed, Sep 24, 2014 at 2:16 PM, William Dunlap wdun...@tibco.com wrote: Running pkg::func or pkg:::func has the side effect

Re: [R] How to test for open pdf file on Windows before calling cairo_pdf ?

2014-09-12 Thread Kevin Wright
. the default output directory is ./figures/, which can be changed. (The need for argument ext=pdf is due to a minor bug that will be fixed in the next release.) Hope this helps, Henrik (author of R.utils and R.devices) On Thu, Sep 11, 2014 at 1:06 PM, Kevin Wright kw.s...@gmail.com wrote

[R] cairo_pdf crashing R on Windows

2014-09-12 Thread Kevin Wright
I'm having trouble with cairo_pdf crashing R on Windows. How can I debug this? This is a exited abnormally type crash, so I can't drop into the browser and look at the call stack. Kevin -- Kevin Wright [[alternative HTML version deleted

[R] How to test for open pdf file on Windows before calling cairo_pdf ?

2014-09-11 Thread Kevin Wright
be written to by cairo_pdf ? I'd rather not wrap all plotting commands with try()I have many such commands in my script and the choice of which one is first depends on user input. Kevin Wright [[alternative HTML version deleted]] __ R-help@r

Re: [R] Import data from Excel to R

2014-09-10 Thread Kevin Wright
was to use the XLConnect package and read the xlsx file directly. Kevin Wright On Wed, Sep 10, 2014 at 3:51 AM, Omar André Gonzáles Díaz oma.gonza...@gmail.com wrote: The best way is to save the file as CSV... after you can simply import it with this comand in R: read.csv(...) ... to know

[R] New details about Cochran and Cox's chocolate cake data

2014-07-14 Thread Kevin Wright
In that posting, Bill mentioned that the experiment details were not quite clear on a detail, so I went to the source document and transcribed a few of the details. (See below). I'm posting them here for posterity and the curiosity of anyone interested. Kevin Wright Source: Frances E Cook. 1938

Re: [R] Skipping .Rd files and using Org-mode instead?

2014-06-02 Thread Kevin Wright
commented, minimal, self-contained, reproducible code. -- Kevin Wright [[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 http://www.R

Re: [R] Correlelogram with partial correlation coefficients

2014-05-14 Thread Kevin Wright
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. -- Kevin Wright [[alternative HTML version deleted

Re: [R] lattice change font of one specific axis label in each panel

2014-03-27 Thread Kevin Wright
://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. -- Kevin Wright [[alternative HTML version deleted

Re: [R] Urgent Inquiry

2014-02-12 Thread Kevin Wright
__ R-help@r-project.org 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. -- Kevin Wright [[alternative HTML

Re: [R] Multiple corrgrams or joining jpg/png

2014-01-22 Thread Kevin Wright
guide http://www.R-project.org/ posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] The difference between SAS and R

2013-12-20 Thread Kevin Wright
SAS uses words. R uses symbols. See this: http://xkcd.com/1306/ (Yes, I know IML uses plenty of symbols. It's just supposed to be funny. And somewhat true.) -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-18 Thread Kevin Wright
Another nice thing about your solution is that circles look like circles, and not like diamonds (when viewed on screen). Thanks. Kevin Wright On Mon, Dec 16, 2013 at 8:02 PM, Steve Taylor steve.tay...@aut.ac.nzwrote: Unfortunately the win.metafile() device does not support semi-transparent

Re: [R] Heatmap, and heatmap.2 gave different figures for the same dataset

2013-12-12 Thread Kevin Wright
Read the help page for both and pay particular attention to the scale argument. Kevin Wright On Thu, Dec 12, 2013 at 9:45 AM, capricy gao capri...@yahoo.com wrote: I have a huge dataset(15k X 18) and tried to use the heatmap in R to examine the patterns. However, I found that heatmap

Re: [R] data distribution for lme

2013-12-11 Thread Kevin Wright
On Tue, Dec 10, 2013 at 7:33 PM, Rolf Turner r.tur...@auckland.ac.nzwrote: See inline below. On 12/11/13 11:28, Bert Gunter wrote: This is not really an R question -- it is statistics. In any case, you should do better posting this on the R-Sig-Mixed-Models list, which concerns itself

Re: [R] (no subject)

2013-12-09 Thread Kevin Wright
/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. -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r-project.org

[R] What graphics device settings are used by Rcmd check ?

2013-11-12 Thread Kevin Wright
trying to find the settings used by Rcmd check. Where do I look for these? -- Kevin Wright [[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

Re: [R] Data Security when using R

2013-11-11 Thread Kevin Wright
and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright [[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 http

Re: [R] plot correlation matrix

2013-10-21 Thread Kevin Wright
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

Re: [R] package:nlme unexpected varIdent behaviour

2013-10-02 Thread Kevin Wright
/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. -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r

[R] Should I wrap more package examples in \dontrun{} ?

2013-09-03 Thread Kevin Wright
. In the interest of long-term package stability I'm thinking about wrapping more of the examples in my package in \dontrun{}. Especially the parts that depend on other packages. I'm interested to know how other package developers approach this problem. -- Kevin Wright [[alternative HTML version

Re: [R] RSM

2013-08-23 Thread Kevin Wright
]] __ R-help@r-project.org 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. -- Kevin Wright

Re: [R] Fwd: about plantbreeding library

2013-08-17 Thread Kevin Wright
-project.org 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. -- Kevin Wright [[alternative HTML version deleted

Re: [R] Lattice: bwplot - changing box colors in legend and plot when using panel.groups = function... and panel = panel.superpose

2013-08-13 Thread Kevin Wright
, #strip.shingle=list(col=c(red,blue)), superpose.symbol=list(fill=c(red,blue)), # boxplots #superpose.fill=list(col=c(red,blue)), superpose.polygon=list(col=c(red,blue)), # legend par.sub=font.settings) Kevin Wright On Tue, Aug 13, 2013 at 9:00 AM, Anna Zakrisson Braeunlich anna.zakris

Re: [R] question for diallel analysis

2013-08-12 Thread Kevin Wright
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] diallel analysis

2013-07-15 Thread Kevin Wright
. -- Kevin Wright [[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 http://www.R-project.org/posting-guide.html and provide commented, minimal, self

Re: [R] Strange behaviour of R graphics copied to PowerPoint

2013-06-03 Thread Kevin Wright
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] measuring distances between colours?

2013-06-02 Thread Kevin Wright
and the number of colours converted each time. Best, John -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Kevin Wright Sent: Friday, May 31, 2013 3:39 PM To: Martin Maechler Cc: r-help; John Fox Subject

Re: [R] measuring distances between colours?

2013-05-31 Thread Kevin Wright
' colors in lattice. Kevin Wright rgb2col - function(cols.hex, near=.25){ # Given a vector of hex colors, find the nearest 'named' R colors # If no color closer than 'near' is found, return the hex color # Authors: John Fox, Martin Maechler, Kevin Wright # From r-help discussion 5.30.13

Re: [R] negative correlation with corSymm in nlme or another way?

2013-05-06 Thread Kevin Wright
--evidence of competition plot(ACF(m1), alpha=.05, grid=TRUE) Kevin Wright On Sun, May 5, 2013 at 1:12 PM, Seth sjmy...@syr.edu wrote: Hi, I have a nonlinear model with residuals that are negatively autocorrelated at short distances. I can find no spatial correlation structures in nlme

Re: [R] Why can't R understand if(num!=NA)?

2013-05-03 Thread Kevin Wright
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] the joy of spreadsheets (off-topic)

2013-04-17 Thread Kevin Wright
. -- Kevin Wright [[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 http://www.R-project.org/posting-guide.html and provide commented, minimal

Re: [R] Colour branches/labels of dendrogram according to a grouping variable

2013-03-07 Thread Kevin Wright
@r-project.org 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. -- Kevin Wright [[alternative HTML version deleted

Re: [R] Shapiro-Wilk normality test

2012-11-02 Thread Kevin Wright
-contained, reproducible code. -- Kevin Wright [[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 http://www.R-project.org/posting-guide.html

Re: [R] Cannot rescale a constant/zero column error.

2012-10-31 Thread Kevin Wright
Sounds like one of your data columns is constant. The variance of a constant is 0, and scaling would then divide by 0, which is impossible. Kevin Wright On Wed, Oct 31, 2012 at 7:47 AM, fillay89 jasonf...@gmail.com wrote: I am trying to run the R Script below, I have actually simplified

Re: [R] corrgram

2012-09-25 Thread Kevin Wright
-contained, reproducible code. -- Kevin Wright __ R-help@r-project.org 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

Re: [R] corrgram

2012-09-25 Thread Kevin Wright
Um, Bert, did you try my example? It uses grid graphics to annotate a base-graphics plot. Kevin On Tue, Sep 25, 2012 at 10:50 AM, Bert Gunter gunter.ber...@gene.com wrote: Inline: On Tue, Sep 25, 2012 at 8:42 AM, Kevin Wright kw.s...@gmail.com wrote: Claudia, When you are asking a question

Re: [R] Plotting US States: Issue with filled colors cycling

2012-09-12 Thread Kevin Wright
-help@r-project.org 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. -- Kevin Wright __ R-help

[R] CairoWin on Windows 7 doesn't refresh

2012-09-11 Thread Kevin Wright
of the graphics window. Anybody else experience this? -- Kevin Wright __ R-help@r-project.org 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

Re: [R] Obtain residuals from a Principal Component Analysis

2012-07-25 Thread Kevin Wright
Just use 'predict' on the fitted model and subtract the predicted values from the data. Kevin Wright On Wed, Jul 25, 2012 at 5:02 AM, petohtalrayn h643...@rtrtr.com wrote: Hi everyone, I am relatively new to R, and I need to perform the principal components analysis of a data matrix. I know

Re: [R] Obtain residuals from a Principal Component Analysis

2012-07-25 Thread Kevin Wright
(or however many) principal components: m1$scores[,1:2] %*% t(m1$loadings[,1:2]) I think of residuals as being the difference between the original matrix X and this lower-rank approximation of X: round(X - m1$scores[,1:2] %*% t(m1$loadings[,1:2]),4) Kevin Wright On Wed, Jul 25, 2012 at 5:02 AM

Re: [R] Mixed Models providing a correlation structure.

2012-07-11 Thread Kevin Wright
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] visualize correlation matrix

2012-06-17 Thread Kevin Wright
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Correlograms: using boxes and different variables on rows and columns

2012-05-25 Thread Kevin Wright
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Reading a bunch of csv files into R

2012-05-25 Thread Kevin Wright
-contained, reproducible code. -- Kevin Wright __ R-help@r-project.org 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

Re: [R] R2 in multilevel modelling

2012-04-30 Thread Kevin Wright
-project.org 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. -- Kevin Wright [[alternative HTML version deleted

Re: [R] How do i read the source code of biplot?

2012-04-25 Thread Kevin Wright
, self-contained, reproducible code. -- Kevin Wright [[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 http://www.R-project.org/posting

Re: [R] pca biplot.princomp has a bug?

2012-04-25 Thread Kevin Wright
is the most-varying direction of the data. The arrows are pointing in the direction of the variables, as projected into the 2-d plane of the biplot. There is no bug. Kevin Wright On Wed, Apr 25, 2012 at 11:29 AM, Michael comtech@gmail.com wrote: x=rmvnorm(2000, rep(0, 6), diag(c(5, rep(1,5

Re: [R] PCA sensitive to outliers?

2012-04-20 Thread Kevin Wright
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Quick question about princomp/biplot

2012-04-20 Thread Kevin Wright
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] sdev, variance in prcomp

2012-04-09 Thread Kevin Wright
-help@r-project.org 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. -- Kevin Wright [[alternative HTML version deleted

Re: [R] Best way to search r- functions and mailing list?

2012-04-05 Thread Kevin Wright
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] What are the color's name in heat.color(5)

2012-03-28 Thread Kevin Wright
do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

Re: [R] How to start R in maximized size???

2012-03-16 Thread Kevin Wright
/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. -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r-project.org mailing

Re: [R] Correlograms

2012-01-10 Thread Kevin Wright
If I understand your question correctly, install the corrgram package from CRAN. Then, library(corrgram) cm - cor(iris[ , 1:4]) corrgram(cm, type=corr) Also, see help for the vote data: ?vote Kevin Wright On Tue, Jan 10, 2012 at 2:06 PM, Natbyah nathanie...@gmail.com wrote: I would like

Re: [R] optim seems to be finding a local minimum

2011-11-14 Thread Kevin Wright
the posting guide http://www.R-project.org/** posting-guide.html http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Kevin Wright [[alternative HTML version deleted]] __ R-help@r

Re: [R] 2^k*r experimental design and anova

2011-11-10 Thread Kevin Wright
__ R-help@r-project.org 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. -- Kevin Wright

Re: [R] Needed help with 3 factor anova !!!

2011-10-05 Thread Kevin Wright
For example, library(agridat) ?gomez.stripsplitplot Kevin Wright On Wed, Oct 5, 2011 at 3:13 PM, Dennis Murphy djmu...@gmail.com wrote: Try Googling 'Three factor ANOVA R'; it didn't take long to find a few relevant hits. Dennis On Wed, Oct 5, 2011 at 10:56 AM, rafal rafalpedzi

Re: [R] Difficulty with lme

2011-10-05 Thread Kevin Wright
Generally, the only way to estimate f1:f2 is if you have all combinations of data present for these two factors. Sometimes it makes sense to include f1:f2 as a random effect in the model (which does NOT need balanced data) but that is something you have to decide. Kevin On Wed, Oct 5, 2011 at

Re: [R] Newer Matrix Factorization Techniques

2011-09-01 Thread Kevin Wright
Bioconductor has the pcaMethods package, with multiple options for PCA, including a robust L1-norm SVD. Kevin Wright On Thu, Sep 1, 2011 at 5:16 AM, Igor Carron igorcar...@gmail.com wrote: Hi, I am not sure if this should go to r-help or r-dev list. I have looked at some archives of R

Re: [R] Easier ways to create .Rd files?

2011-08-23 Thread Kevin Wright
I like the roxygen2 package for combining code and documentation. If you use Emacs + ESS, it will even create much of the roxygen code for you (and auto-revise it if you change the function arguments). Kevin Wright On Tue, Aug 23, 2011 at 6:55 PM, Jonathan Greenberg greenb...@ucdavis.eduwrote

Re: [R] problem in asreml function in wgaim package

2011-08-12 Thread Kevin Wright
You are correct. asreml is a commercial package which requires a license. See the download site for more information. Kevin Wright On Fri, Aug 12, 2011 at 12:52 PM, ram basnet basnet...@yahoo.com wrote: Dear Uwe Ligges, Thanks for response. I mean this R package is not free package

Re: [R] question about linear mixed model

2011-07-18 Thread Kevin Wright
Note: PLEASE do read the posting guide http://www.R-project.org/posting-guide.htmlhttp://www.r-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Also, your question may be more appropriate for the R mixed-models mailing list. Kevin On Sun, Jul

Re: [R] problem with corrgram function

2011-07-02 Thread Kevin Wright
This bug has been fixed. Kevin On Tue, Jun 28, 2011 at 6:11 AM, Niels Janssen njans...@ull.es wrote: Dear list, I have a problem with the corrgram function. It does not seem to color large negative correlations, while the same correlation, if positive, provides no problems. Is this a bug?

Re: [R] In a formula, what is the interaction of the intercept and a factor?

2011-06-01 Thread Kevin Wright
is group simply vanishing in the second model? I tried to dig into this until I hit .Internal(model.matrix Kevin On Tue, 31 May 2011, Kevin Wright wrote: For a pedagogical purpose, I was trying to show how the formula for a simple regression line (~1+x) could be crossed with a factor

Re: [R] In a formula, what is the interaction of the intercept and a factor?

2011-06-01 Thread Kevin Wright
On Wed, Jun 1, 2011 at 9:44 AM, Kevin Wright kw.s...@gmail.com wrote: On Wed, Jun 1, 2011 at 1:19 AM, Prof Brian Ripley rip...@stats.ox.ac.ukwrote: [text deleted] Note that you usually want to do '*' when you say 'interact with': model.matrix(y ~ (1+x)*group, data = dat) (Intercept

[R] In a formula, what is the interaction of the intercept and a factor?

2011-05-31 Thread Kevin Wright
For a pedagogical purpose, I was trying to show how the formula for a simple regression line (~1+x) could be crossed with a factor (~1:group + x:group) to fit separate regressions by group. For example: set.seed(201108) dat - data.frame(x=1:15, y=1:15+rnorm(15), group =

Re: [R] R Style Guide -- Was Post-hoc tests in MASS using glm.nb

2011-05-19 Thread Kevin Wright
John Chambers is also very widely quoted describing the aim of S as to turn ideas into software, quickly and faithfully. Perhaps S3 is for people wanting to do things quickly and S4 is for those wanting to do things faithfully. Kevin On Wed, May 18, 2011 at 7:39 PM, bill.venab...@csiro.au

Re: [R] Email out of R (code)

2011-05-18 Thread Kevin Wright
How does this compare to create.post() ? Kevin On Tue, May 17, 2011 at 3:44 PM, Daniel Malter dan...@umd.edu wrote: Hi all, I thought I would post code to send an email out of R. The code uses Grothendieck and Bellosta's interface package rJython for executing Python from R. The code

Re: [R] biplots for PCA

2011-05-13 Thread Kevin Wright
Did you try tweaking the value of the expand parameter? See the help page of biplot for more info. Kevin On Fri, May 13, 2011 at 4:38 AM, Anna Renwick anna.renw...@bto.org wrote: Hi all I have produced a biplot for a PCA (see attached pdf) that I ran however the names of the variables

[R] Discovery version of ASREML now free

2011-04-21 Thread Kevin Wright
/ (Inquiries may be delayed due to Easter weekend.) Kevin Wright [[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 http://www.R-project.org

[R] Which should I use? system.file() path.package() find.package()

2011-04-18 Thread Kevin Wright
, so I am wondering, is there is a preferred approach? Kevin Wright [[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 http://www.R-project.org

Re: [R] How to see a R code from a package?

2011-04-14 Thread Kevin Wright
See help for getAnywhere() Kevin On Thu, Apr 14, 2011 at 11:24 AM, Soyeon Kim yunni0...@gmail.com wrote: Dear R users, Hi. I want know R code of a function: predict.cv.glmnet (which is included in glmnet package). Could you let me know how I can see the R code of the function? Thank

  1   2   >