Displaying 17 results from an estimated 17 matches for "eurodist".
2010 Nov 19
1
library(datasets)
## i have one question anouth this package..
library(datasets)
eurodist
## if i type this i get max distance between european cities
> max(eurodist)
[1] 4532
## but i would like get something like this: 4532 Gilbratar - Anthens
## and another one..
## if a live in barcelona and i would like travel in all cities
## how can i get sum of all distance to other cities....
2004 Oct 13
3
data(eurodist) and PCA ??
If I perform PCA on the 'eurodist' data, should I get an accurate
geographic layout of the cities with biplot?
(barring inversions, i.e. their is no way to define north.. but you get
the idea...)
I have a complex distance matrix, and I am thinking about how to cluster
it and how to visualize the quality of the resulting clust...
2009 Aug 13
1
eurodist example dataset is malformed
The eurodist dataset (my favorite for mds) is malformed. Instead of a
standard distance matrix, it's a data frame. The rownames have gotten
'bumped' to a new anonymous dimension "X". It's possible to fix the data,
but it messes up a lot of example code out there.
X Athen...
2005 Oct 11
1
Manual page example of plot.window needs fixing
I was looking at the example on the manual page of plot.window, and
noticed that it needs fixing - names(eurodist) should now be
labels(eurodist):
--- /home/rsb/topics/R-2.2.0/src/library/graphics/man/plot.window.Rd
2005-04-18 12:18:59.000000000 +0200
+++ plot.window.Rd 2005-10-11 21:08:57.000000000 +0200
@@ -48,6 +48,6 @@
ry <- range(y <- -loc[,2])
plot(x, y, type="n", asp=1, xlab=...
2005 Jan 08
0
cmdscale problem
...t eigenvalue. This affects GOF statistic g.1
(See Mardia, Kent + Bibby (1979): Multivariate Analysis, eq. (14.4.7).
The corresponding formula in Cox + Cox (2001): Multidimensional Scaling,
2nd ed., p 38, would seem to contain a misprint, it should be n instead
of n-1.)
Example:
R> cmdscale(eurodist, eig=TRUE)$GOF
[1] 0.7968344 0.8679134
The full set of eigenvalues can be obtained via
R> H <- function(n) { diag(n) - matrix(1, n, n)/n }
R> eigen( -.5 * H(21) %*% (as.matrix(eurodist))^2 %*% H(21) ,
+ only.values=TRUE)$values
[1] 1.953838e+07 1.185656e+07 1.528844e+06
[4] 1.118...
2002 Nov 23
0
Intermittant hang in cmdscale (PR#2323)
...ant hang during cmdscale of the mva library.
Some data never cause a problem, other data always do, abut I can't track down
the difference in the structure of the data. Sometimes the function will work
for `difficult' data after it has been run in the same session for `behaved'
data (eurodist always works)! Here is a typical session:
$ R
> library(mva)
> x <- read.table("test.dat",row.names=1)
> x
V2 V3
A 1 2
B 2 4
C 5 7
D 1 1
> dist(x)
A B C
B 2.236068
C 6.403124 4.242641
D 1.000000 3.162278 7.211103
> cmdscale(dis...
1997 Oct 24
0
R-beta: Problem with cmdscale on R for W95
I'm using rseptbeta for w95,
I tried to do:
> library(mva)
> data(eurodist)
> cmdscale(eurodist)
Error in .C("dblcen", x, as.integer(n)) : C/Fortran function not in load table
>
how can I solve this problem?
Andrea Rossetti
_______________________________________________________
Statistica & Informatica per la Gestione delle Imprese |
Universit? degl...
2008 Dec 10
1
convert dataframe to matrix for cmdscale
...order b,a. Subjects are not
perfectly consistent and so will not give exactly the same answer
twice. However it is reasonable to take the average of a,b and b,a.
I would like to do cmdscale or isoMDS on the data.
As I understand it, these take the data as a lower triangle. At least
that is how the eurodist example for cmdscale went.
So in my case I need
c
b 1.20
a 0.95 2.10
a b c
Starting from the dataframe at the top of this posting, how do I get a
lower triangular matrix in this form, with the labels a, b, c (just
like eurodist)?
Thanks very much for any help.
Bill
2001 Jun 11
1
R-devel on alpha Tru64: cxml/dxml problem (PR#977)
...check stops in base-Ex.R at:
> ###--- >>> `plot.window' <<<----- Set up World Coordinates for Graphics
Window>
> ## alias help(plot.window)
>
> ##___ Examples ___:
>
> ##--- An example for the use of `asp' :
> library(mva)
> data(eurodist)
> loc <- cmdscale(eurodist)
Error in La.eigen(Tmat, symmetric = TRUE) :
On entry to DSYEV parameter number 8 had an illegal value
Execution halted
The problem is, that by default the accelerated blas library (libdxml or
libcxml) is found by ./configure and gets used (DSYEV resides...
2002 Sep 05
2
Version 1.5.1 STILL failing make check.
...eck''. Then I tried setting CC=cc in
config.site, and the damned thing failed again (but differently).
Now at least ``!is.nan(var(1))'' is TRUE, as it should be. The
problem comes from lapack. At the end of
.../test/Examples/base-Ex.Rout.fail
we find:
> loc <- cmdscale(eurodist)
Error in La.eigen(-x/2, symmetric = TRUE) :
lapack routines cannot be loaded
Execution halted
Which I guess I should've expected --- it couldn't be so simple as to
change compilers from gcc to cc, could it? Have I done something
naive in making the change to config.site? Should I h...
2005 Feb 02
4
(no subject)
...Mauna Loa Atmospheric CO2 Concentration
discoveries Yearly Numbers of Important Discoveries
esoph Smoking, Alcohol and (O)esophageal Cancer
euro Conversion Rates of Euro Currencies
euro.cross (euro) Conversion Rates of Euro Currencies
eurodist Distances Between European Cities
faithful Old Faithful Geyser Data
fdeaths (UKLungDeaths)
Monthly Deaths from Lung Diseases in the UK
freeny Freeny's Revenue Data
freeny.x (freeny) Freeny's Revenue Data
freeny.y (...
2015 Jul 04
0
Support for transparency in metafile export & support for export to Powerpoint
...2office(type=type,...)
# Examples:
require(ggplot2)
qplot(Sepal.Length, Petal.Length, data = iris, color = Species, size = Petal.Width, alpha = I(0.7))
export2ppt(file="plot.pptx")
export2ppt(file="plot.pptx",aspectr=1.7,fontname="Times New Roman")
heatmap(as.matrix(eurodist))
export2ppt(file="heatmap.pptx")
In Powerpoint you can then right click on the graph and Ungroup it, thereby allowing you to make minor changes to the layout if need be, before saving it as PDF from PPT. The quality is much better than what you get if you try to do the editing in the P...
1999 Oct 10
1
Using metric scaling
...n beginning again with the next 8 columns
9 RAWENE .000
10 LAKE ROTOITI .223 .000
11 LAKE ROTORUA .223 .084 .000
and so on.
Can some tolerant person let me know the way to enter this into a distance
or symmetric matrix structure in R?
Also, in the 'eurodist' example given with cmdscale.html the plot gives the
point labels, but no symbol showing the location of the point. Is it
possible to specify a plotting symbol as well as the label?
Regards,
Murray Jorgensen
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r...
2006 Apr 24
0
R 2.3.0 is released
...arger ncp.
o R CMD build --binary does a better job of cleaning up after
failure to re-make vignettes.
o reg-test-1.R tested system(intern=TRUE) which depends on popen
and so is not supported on all platforms.
o Changed apparent mis-spelling of "Gibraltar" in dataset 'eurodist'.
o sysconf() is now used to find the number of clock ticks/second:
under some circumstances glibc reported CLK_TCK = 60 when the
true value was 100.
o identical() was not allowing for embedded nuls in character
strings. (NB: the comparison operators including == do not,
and never...
2006 Apr 24
0
R 2.3.0 is released
...arger ncp.
o R CMD build --binary does a better job of cleaning up after
failure to re-make vignettes.
o reg-test-1.R tested system(intern=TRUE) which depends on popen
and so is not supported on all platforms.
o Changed apparent mis-spelling of "Gibraltar" in dataset 'eurodist'.
o sysconf() is now used to find the number of clock ticks/second:
under some circumstances glibc reported CLK_TCK = 60 when the
true value was 100.
o identical() was not allowing for embedded nuls in character
strings. (NB: the comparison operators including == do not,
and never...
2000 Feb 17
2
Installation of rpm file on Suse Linux 6.2 (PR#449)
...ibrary/base/data/co2.R action: create
D: file: /usr/local/lib/R/library/base/data/discoveries.R action: create
D: file: /usr/local/lib/R/library/base/data/esoph.R action: create
D: file: /usr/local/lib/R/library/base/data/euro.R action: create
D: file: /usr/local/lib/R/library/base/data/eurodist.R action: create
D: file: /usr/local/lib/R/library/base/data/faithful.R action: create
D: file: /usr/local/lib/R/library/base/data/freeny.R action: create
D: file: /usr/local/lib/R/library/base/data/infert.R action: create
D: file: /usr/local/lib/R/library/base/data/iris.R action: creat...
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...html latex example
eigen text html latex example
environment text html latex example
esoph text html latex example
euro text html latex example
eurodist text html latex
eval text html latex example
example text html latex example
exists text html latex example
expand.grid text html...