Displaying 20 results from an estimated 6000 matches similar to: "stats::screeplot suggestion"
1998 Aug 26
0
prcomp & princomp - revised
My previous post about prcomp and princomp was done in some haste as I had long
ago indicated to Kurt that I would try to have this ready for the June release,
and it appeared that I would miss yet another release. I also need to get it out
before it becomes hopelessly buried by other work.
Brian Ripley kindly pointed out some errors, and also pointed out that I was
suggesting replacing some
2019 Sep 27
1
passing extra arguments to devtools::build
This question was posed on SO :
https://stackoverflow.com/questions/58118495/passing-extra-argumenets-to-devtoolsbuild
but there has been no useful reply.
Something seems to have changed in the |devtools|package, so that the
following commands, that used to run now give an error I can't decipher:
|>Sys.setenv(R_GSCMD="C:/Program
2024 Mar 25
1
Double buffering plots on Windows
Hi Paul
Is there a concrete working example somewhere that shows how to use these to do an animation on Windows (R Gui &/or RStudio) using base R plot() and friends?
I have several old examples somewhere that used to work (R < ~ 3), but now no longer work as before.
Date: Mon, 25 Mar 2024 10:43:29 +1300
From: Paul Murrell <paul at stat.auckland.ac.nz<mailto:paul at
2020 Jan 08
2
re-submission of package after CRAN-pretest notes
It used to be the case that when I submitted a package and it gave notes
or warnings in the CRAN checks, I was required to bump the package
version before re-submission.
I hope this is no longer the case.? I recently submitted a package that
gave one fairly trivial NOTE, fixed that, and would like to re-submit.
-Michael
--
Michael Friendly Email: friendly AT yorku DOT ca
Professor,
2020 Oct 22
0
vanilla session in R Gui or RStudio
Have you looked into your .Rprofile file? Loading packages is not something R normally does without your telling it to do so, but many people forget that they have done so.
On October 22, 2020 3:47:04 PM PDT, Michael L Friendly <friendly at yorku.ca> wrote:
>[env: Windows, R 3.6.6]
>
>When I start R from the R Gui icon or from RStudio, I get a large
>number of packages loaded
2020 Oct 22
2
vanilla session in R Gui or RStudio
[env: Windows, R 3.6.6]
When I start R from the R Gui icon or from RStudio, I get a large number of packages loaded via a namespace. Not entirely clear where these come from.
As a result, I often run into problems updating packages because something is already loaded. How can start a new gui session with minimal packages loaded?
> sessionInfo()
R version 3.6.3 (2020-02-29)
Platform:
2001 May 31
1
Screeplot
I'm trying to make a screeplot including the Cumulative Proportion of
the Variance, something that can easily be done in S-Plus with
'screeplot(pc.object,cumulative=T)'. How can I access the Proportion of
Variance in an princomp object and how could I get the Cumulative
Proportion of the Variance on the screeplot?
Many thanks in advance, Jan:-)
--
2020 Oct 23
0
vanilla session in R Gui or RStudio
Can you be more specific about what conditions cause R to automatically load a package when a .RData file is loaded? My experience has actually been the opposite.
On October 22, 2020 6:13:11 PM PDT, Henrik Bengtsson <henrik.bengtsson at gmail.com> wrote:
>As Jeff says, it might be that you have a ~/.Rprofile file with
>instructions to load packages when R starts. It could also be
2013 Jul 09
0
probable bugs in stats::loglin calculation of pearson chisq
In running the following example of a loglinear model for the Titanic data,
I was surprised to see NaN reported for the
Pearson chisq
> loglin(Titanic, margin=list(1:3, 4))
2 iterations: deviation 2.273737e-13
$lrt
[1] 671.9622
$pearson
[1] NaN
$df
[1] 15
$margin
$margin[[1]]
[1] "Class" "Sex" "Age"
$margin[[2]]
[1] "Survived"
Tracing it back,
2020 Oct 23
3
vanilla session in R Gui or RStudio
As Jeff says, it might be that you have a ~/.Rprofile file with
instructions to load packages when R starts. It could also be that
you have a .RData file, which is saved if you answer yes to:
> Save workspace image? [y/n/c]: y
when you quit R. If this file exists, then R loads it and all the
objects you had when you saved it. If there are objects associated
with packages, then that will
2014 Jan 10
0
proposal: stats::as.matrix.ftable method
Following some discussion on R-help, I'd like to propose that an
as.matrix method be added
to those available for ftable objects. The reason for this is that
there are a variety of situations
where one needs to flatten a 3+ way table, but then use that for
analysis as a matrix, not just for
pretty-printing. There is an as.table method to turn the result back to
a table, but an as.matrix
2007 Mar 02
2
Wishlist: Make screeplot() a generic (PR#9541)
Full_Name: Gavin Simpson
Version: 2.5.0
OS: Linux (FC5)
Submission from: (NULL) (128.40.33.76)
Screeplots are a common plot-type used to interpret the results of various
ordination methods and other techniques. A number of packages include ordination
techniques not included in a standard R installation. screeplot() works for
princomp and prcomp objects, but not for these other techniques as it
2008 Sep 17
1
rgl: plot3d and ellipse3d
Hi
I'm trying to make a 3d plot showing a point cloud, the corresponding
data ellipse
and the principal axes of the ellipse as vectors.
library(rgl)
data(trees)
cov <- cov(trees)
mu <- mean(trees)
plot3d(trees, type="s", size=0.5, col="blue", cex=2)
In this step, an extra box is added. I've tried using box=FALSE, but it
has no effect.
# how to avoid the
2018 May 26
0
TukeyHSD for multiple response
Hi Sergio
Doing those tests 30 times is going to give you a huge Type I error
rate, even if there was a function that did that. There is a reason
why TukeyHSD doesn't make it easy.
In general, if there are useful comparisons among the species, you are
better off setting up and testing contrasts than doing all-pairwise
Tukey tests.
Also, the PCA scores are ordered in terms of variance
2001 Mar 29
1
screeplot() v.s. plot()
Hi,
Suppose I've got a data set that I found the eigenvalues and eigenvectors. Then I want to draw a screeplot for the eigenvalues. However it returns:
Error in matrix(w.m, nc = NC) : negative extents to matrix
Then I tried a plot() function on the eigenvalues of the data set, and I can successfully draw it! And the output looks like what the screeplot would show to me.
Is there any
2010 Nov 25
1
Request: kronecker to get a sep= argument
kronecker, with make.dimnames=TRUE uses a hardwired sep=":" in the line
tmp <- outer(dnx[[i]], dny[[i]], FUN = "paste", sep = ":")
For an application in which dimnames arise from an n-way array, where
different dimensions have
different roles, and I would like to be able to use kronecker in the form
kronecker(A, B, make.dimnames=TRUE,
2010 Nov 29
2
R equivalent of Beaton's Sweep algorithm
I'm looking for an R equivalent of Beaton's (1964) Sweep algorithim for
partial inversion of a
matrix by pivoting.
It implemented in SAS/IML as sweep(matrix, indices), described here
http://support.sas.com/documentation/cdl/en/imlug/59656/HTML/default/langref_sect266.htm
and here for python
http://adorio-research.org/wordpress/?p=262
--
Michael Friendly Email: friendly AT yorku
2011 May 16
1
dir.choose analog of file.choose
Under Windows (and maybe others) you can use file.choose() as a
substitute for an explicit file=
argument in most places.
Is there an analog for what I'll call dir.choose(), so that I can say
setwd(dir.choose())
thx,
-Michael
--
Michael Friendly Email: friendly AT yorku DOT ca
Professor, Psychology Dept.
York University Voice: 416 736-5115 x66249 Fax: 416 736-5814
4700 Keele
2011 Nov 29
2
format numbers without leading or trailing 0s
A simple question, but I can't find something to do what I want:
Given: a vector of numbers, like
lambda <- c(0, 0.005, 0.01, 0.02, 0.04, 0.08)
Desired: format them in minimal space for use as plot labels, ie,
without leading or tailing 0s. For this example:
lambdaf <- c("0", .005", ".01", ".02", ".04", ".08")
--
Michael
2013 Mar 29
1
pairs(X,Y) analog of cor(X,Y)?
With a data frame containing some X & Y variables I can get the between
set correlations
with cor(X,Y):
> cor(NLSY[,1:2], NLSY[3:6])
antisoc hyperact income educ
math 0.043381307 -0.07581733 0.25487753 0.2876875
read -0.003735785 -0.07555683 0.09114299 0.1884101
Is there somewhere an analog of pairs(X,Y) that will produce the pairwise
plots of each X against each