Displaying 20 results from an estimated 5000 matches similar to: "Help with 2-D plot of k-mean clustering analysis"
2008 May 12
2
k means
Hi the devel list,
I am using K means with a non standard distance. As far as I see, the
function kmeans is able to deal with 4 differents algorithm, but not
with a user define distance.
In addition, kmeans is not able to deal with missing value whereas
there is several solution that k-means can use to deal with them ; one
is using a distance that takes the missing value in account, like a
1999 Oct 07
1
[Fwd: Libraries loading, but not really?] - it really IS a problem :-(
kalish at psy.uwa.edu.au wrote:
>
> I'm a newbie at R, and can't get libraries to really work.
> I did this:
> > library(help = mva)
> cancor Canonical Correlations
> cmdscale Classical (Metric) Multidimensional Scaling
> dist Distance Matrix Computation
> hclust Hierarchical Clustering
2012 Jan 11
3
Command completion of the R binary / Ubuntu
Dear Deepayan and dear list,
I notice a small inconsistency with the command completion of the R CMD
check. --no-latex is deprecated sincs R 2.12.0 and defunct since 2.13.0
but the command line completion still suggests it:
cb at cbdesktop:~/r-devel$ bin/R CMD check --no-<here I hit tab>
--no-clean --no-examples --no-latex --no-vignettes
--no-codoc --no-install
2012 Jan 11
3
Command completion of the R binary / Ubuntu
Dear Deepayan and dear list,
I notice a small inconsistency with the command completion of the R CMD
check. --no-latex is deprecated sincs R 2.12.0 and defunct since 2.13.0
but the command line completion still suggests it:
cb at cbdesktop:~/r-devel$ bin/R CMD check --no-<here I hit tab>
--no-clean --no-examples --no-latex --no-vignettes
--no-codoc --no-install
2004 May 28
6
distance in the function kmeans
Hi,
I want to know which distance is using in the function kmeans
and if we can change this distance.
Indeed, in the function pam, we can put a distance matrix in
parameter (by the line "pam<-pam(dist(matrixdata),k=7)" ) but
we can't do it in the function kmeans, we have to put the
matrix of data directly ...
Thanks in advance,
Nicolas BOUGET
2010 Aug 18
1
Plotting K-means clustering results on an MDS
Hello All,
I'm having some trouble figuring out what the clearest way to plot my
k-means clustering result on an my existing MDS.
First I performed MDS on my distance matrix (note: I performed k-means on
the MDS coordinates because applying a euclidean distance measure to my raw
data would have been inappropriate)
canto.MDS<-cmdscale(canto)
I then figured out what would be my optimum
2013 Apr 23
2
Needed: Beta Testers and Summer Camp Students
Greetings.
I'm teaching linear regression this semester and that means I write
more functions for my regression support package "rockchalk". I'm at
a point now were some fresh eyes would help, so if you are a student
in a course on regression, please consider looking over my package
overview document here:
http://pj.freefaculty.org/R/rockchalk.pdf
That tells how you can grab
2002 Feb 15
1
cmdscale k=1
In applying multidimensional scaling, it seems to me that sometimes the
underlying dimensionality of the matrix is 1. However I found a case
where cmdscale failed when I tried k=1. Here it is:
m<-matrix(
c(.5,.81,.23,.47,.61,
.19,.5,.06,.17,.28,
.77,.94,.5,.74,.85,
.53,.83,.26,.5,.64,
.39,.72,.15,.36,.5),
nrow=5)
# BTW I think cmdscale uses only the lower triangle--how to enter only
# that
2011 Jun 09
1
Data package questions
In process of creating data package from an existing one.
The current package has both raw data files and the associated
RData objects created from them. Currently, the data subdirectory
is 1.5Mb and the extdata is 5.4Mb.
Never having created a data package before, how is this best
done? Should the data package contain only the raw data, or
the RData objects too (tightly coupled)? If the later,
2013 Feb 12
1
Contribution
Hi,
I am Parthasarathy G , from IIT Maras ( India ). I am currently in third
year of the undergraduate course.
I would like to contribute to the R project. Can anyone guide me regarding
this?
Thanking you,
Parthasarathy
[[alternative HTML version deleted]]
2011 Oct 13
1
Package snow: is there any way to check if a cluster is "acticve"
Is there a 'proper' way of checking if cluster is active. For example, I create a cluster called .PBcluster
> str(.PBcluster)
List of 4
$ :List of 3
..$ con :Classes 'sockconn', 'connection' atomic [1:1] 3
.. .. ..- attr(*, "conn_id")=<externalptr>
..$ host: chr "localhost"
..$ rank: int 1
..- attr(*, "class")= chr
2013 Mar 06
1
Transpose a big data file and write to a new file
Dear all:
I have a big data file of 60000 columns and 60000 rows like that:
AA AC AA AA .......AT
CC CC CT CT.......TC
..........................
.........................
I want to transpose it and the output is a new like that
AA CC ............
AC CC............
AA CT.............
AA CT.........
....................
....................
AT TC.............
The keypoint is I can't read
2012 Aug 14
3
set working directory to current source directory
Hi all,
Is there a way to get cran R to set the working directory to be wherever
the source file is? Each time I work on a project on different computers I
keep having to set the working directory which is getting quite annoying.
Thanks,
Sachin
[[alternative HTML version deleted]]
2012 Mar 28
2
--as-cran / BuildVignettes: false
I have packages where I know CRAN and other test platforms do not have
all the resources to build the vignettes, for example, access to
databases. Previously I think putting
BuildVignettes: false
in the DESCRIPTION file resolved this, by preventing CRAN checks from
attempting to run the vignette code. (If it was not this, then there was
some other magic I don't understand.)
Now, when
2013 Mar 18
2
OrgMassSpecR peak area issue
Hello!
I am having an issue with the OrgMassSpecR package. I run my HPLC using a
DAD detector. My raw data is exported form chemstation as a csv file. I
then upload the csv into Rstudio no problem. Using the DrawChromatogram
function, I get a nice chromatogram, and my retention time, peak area, and
apex intensity values are given as well.
The problem comes with the peak area value given. The
2011 Jan 20
4
puzzled with plotmath II
sorry, I forgot my sessionInfo: please see below.
-------- Original Message --------
Subject: puzzled with plotmath
Date: Thu, 20 Jan 2011 12:48:18 +0100
From: Claudia Beleites <cbeleites at units.it>
To: R Help <r-help at r-project.org>
Dear all,
I'm puzzled with matrix indices in plotmath.
I'm plotting matrix elements: Z [i, i], and I'd like to put that as label.
2012 Apr 02
2
R datasets ownership(copyright) and license
Dear R Developers,
Recently filed (and dismissed ;) ) law suit by Astrolabe against tz
database developers caused a lot of media-press and discussions and
created some kind of precedence in the USA [3]. But also it imho showed
that similar attacks might happen in the future, and possibly against
data sets which are not that obviously "factual" thus after all might
fall under copyright
2010 Oct 05
3
SweaveInput + keep.source = TRUE trouble
Dear all,
I have trouble with R-beta sweaving files that include definitions with
\SweaveInput in combination with keep.source = TRUE
Symptom:
SInput is taken from too far down the input file (the shift is the number of
lines of the included file). Is that known? Searching didn't turn up anything,
yet I think there are more people than just me using keep.source.
Example:
$
2011 May 04
1
Outlier removal by Principal Component Analysis : error message
Hi,
I am currently analysis Raman spectroscopic data with the hyperSpec package.
I consulted the documentation on this package and I found an example
work-flow dedicated to Raman spectroscopy (see the address :
http://hyperspec.r-forge.r-project.org/chondro.pdf)
I am currently trying to remove outliers thanks to PCA just as they did in
the documentation, but I get a message error I can't
2010 Nov 10
2
force apply not to drop the dimensions of FUN results ?
Dear R users,
Here is my problem:
I have an array with at least four dimensions:
> dim(myArray)
[1] 20 17 3 6
I'd like to apply a function to each occurrence of the matrix (3x6)
defined by the last two dimensions. This interpolation function always
return a matrix of the same dimensions as its argument:
> interpSecteurs.f(myArray[1, 1, , ])
secteur
rotation 1 2 3