Re: [R] [R-pkg] New packages pmg, gWidgets, gWidgetsRGtk2

2006-10-08 Thread Helmut Kudrnovsky
hi,

i got the same error messages.

but after installing GTK libraries AND a restart of my windows machine, the 
package pmg and his GUI was starting correctly.

greetings from austria
helli




Message: 19
Date: Fri, 6 Oct 2006 12:26:00 -0400
From: "Gabor Grothendieck" <[EMAIL PROTECTED]>
Subject: Re: [R] [R-pkg] New packages pmg, gWidgets, gWidgetsRGtk2
To: "j verzani" <[EMAIL PROTECTED]>
Cc: r-help@stat.math.ethz.ch
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi, I need installation instructions. library(pmg) seems not to be enough.
Thanks.

> > library(pmg)
Loading pmg()
Loading required package: gWidgets
Loading required package: gWidgetsRGtk2
Loading required package: RGtk2
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library
'C:/PROGRA~1/R/R-24~1.0/library/RGtk2/libs/RGtk2.dll':
  LoadLibrary failure:  The specified procedure could not be found.

Error: package 'RGtk2' could not be loaded
Error: .onAttach failed in 'attachNamespace'
Loading required package: pmggWidgetsRGtk
PMG needs gWidgetsError in assign(x, value, envir = ns, inherits = FALSE) :
could not find function "gwindow"
In addition: Warning message:
there is no package called 'pmggWidgetsRGtk' in: library(package,
lib.loc = lib.loc, character.only = TRUE, logical = TRUE,
Error: .onLoad failed in 'loadNamespace' for 'pmg'
Error: package/namespace load failed for 'pmg'

On 10/6/06, j verzani <[EMAIL PROTECTED]> wrote:
> > I'd like to announce three new packages on CRAN: pmg, gWidgets, and

__
R-help@stat.math.ethz.ch 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.


[R] centroid of manually given groups in a cca-plot

2006-08-19 Thread Helmut Kudrnovsky
dear R-friends,

i have a set of vegetation and environmental data:

veg <- read.table("http://www.alectoria.at/dl/rmalliveg.csv";, 
header=TRUE, sep=";")
env <- read.table("http://www.alectoria.at/dl/rmallienv.csv";, 
header=TRUE, sep=";")

with the library "vegan" i did a constrained correspondence analysis(cca):

rmcca <- cca(veg,env)

and with ordihull from "vegan" it is possible to draw a line or polygon around 
manually
given group(s) - (groups = Factor giving the groups for which the graphical 
item is drawn) - in the plot of the cca.

rmlab <- read.table("http://www.alectoria.at/dl/rmlabel.csv";)
attach(rmlab)
ordihull(rmcca, V1, display="sites")

my question in a (more general) way: is it may be possible to get the 
centroid-coordinates from such
manually given groups of a cca or is it may be possible to draw the centroid of 
such group(s)?

with greetings from austria
helli

> version
   _ 
platform   i386-pc-mingw32   
arch   i386  
os mingw32   
system i386, mingw32 
status   
major  2 
minor  3.1   
year   2006  
month  06
day01
svn rev38247 
language   R 
version.string Version 2.3.1 (2006-06-01)

__
R-help@stat.math.ethz.ch 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.


[R] copy contributed packages from R 2.2.0 to 2.2.1

2005-12-23 Thread Helmut Kudrnovsky
hi R-users,

a few days ago R 2.2.1 came out. on my win xp i'installed R 2.2.0. along the 
time i've installed a lot of contributed packages. my internet-connection is 
not very fast.

 so my question:  is it possible after installing R 2.2.1 to do copy/paste the 
contributed packages from the C:\Programme\R221 to the  C:\Programme\R2.2.1- 
location in the files system?

or have i to download and install the packages new?


greetings from the snowy austria
merry christmas
helli

system
R.2.2.0
win xp

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] "text"-function: adding text in an x,y-plot

2005-05-29 Thread Helmut Kudrnovsky

Hello R-friends,

i have a question to the "text"-function.

a little test-dataset for better understanding:

-the dataset was imported with read.table(,header=TRUE)
s1-s10 are the samplenames

var1 var2 var3
s1 112
s2 231
s3 223
s4 543
s5 423
s6 632
s7 854
s8 721
s9 932
s10864

-then i´ve performed a pincipal component analysis with prcomp

-for displaying the result in a x,y-graph i transformed out.pca$x into the 
dataframe points

 points <- out.pca$x
> points
   PC1 PC2PC3
s1  -4.7055777 -0.14781544 -0.3683602
s2  -3.1854599  0.19661476  1.5212455
s3  -3.2687980  0.78193513 -0.6352458
s4   0.2278948  1.00061498  0.2164108
s5  -1.4382847  0.02500633 -0.9114340
s6   0.6216283 -0.68606440  0.2071083
s7   3.4951878  1.17343675 -0.3266629
s8   1.0153619 -2.37274378  0.1978058
s9   3.3673983 -1.82145761 -0.2071739
s10  3.8706492  1.85047328  0.3063065

- with plot(points$PC1, points$PC2, type="n") i start a graph without 
displaying anything at the x,y-coordinates


- i want now to display the samplenames at the right x,y-coordinate;  i 
generated a dataframe called lab with the samplenames


> lab
V1
1   s1
2   s2
3   s3
4   s4
5   s5
6   s6
7   s7
8   s8
9   s9
10 s10

- i´ve studied the "text"-helppage and so i tried the following:

text(pca$PC1, pca$PC2, labels=lab)

- in the plot there is now c(1,3,4,5,6,7,8,9,10,2) displayed instead of s1-s10

is out there any idea what i'am doing wrong? is there maybe another way of 
displaying the samplenames at the right x,y-coordinate?


greetings from the sunny tirol with thanks in advance
helli

platform i386-pc-mingw32
arch i386
os   mingw32 - win xp
system   i386, mingw32
status
major2
minor1.0
year 2005
month04
day  18
language R

__
R-help@stat.math.ethz.ch 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] Data manipulation

2005-02-08 Thread Helmut Kudrnovsky
thanks a lot  for the information, reshape did the job

> datars <-reshape(data, timevar="TERRCODE", idvar="BID", direction="wide")

greetings
helli

BID TERRCODEANMCODE
200310413120660 22  0
200310413120660 273 0
200310413120660 280 0
200310413120660 467 0
200310413120660 468 0
200310413127001 5   0
200310413127001 50  0
200310413127001 53  13
200310413127001 54  11
200310413127001 72  0
200310413127001 89  0
200310413127001 671 0
200310413225032 1   0
200310413225032 3   0
200310413225032 6   0
200310413225032 51  0
200310413225032 52  21
200310413225032 53  21
200310413225032 54  21
200310413225032 55  13
200310413225032 57  11
200310413225032 72  0


result:

BID ANMCODE.1   ANMCODE.2   ANMCODE.3   ANMCODE.4   
ANMCODE.5   ANMCODE.6   ANMCODE.7   
200310413120660 NA  NA  NA  NA  NA  NA  NA  NA  
NA  NA  NA  NA  
200310413127001 NA  NA  NA  NA  0   NA  NA  NA  
NA  NA  NA  NA  
200310413225032 0   NA  0   NA  NA  0   NA  NA  
NA  NA  NA  NA  
200310413225033 0   NA  0   NA  NA  0   NA  NA  
NA  NA  NA  NA  
200310413225072 0   NA  0   NA  NA  NA  NA  NA  
0   NA  NA  0   
200310413225073 0   NA  0   NA  NA  0   NA  NA  
NA  NA  0   NA  
200310413225074 0   NA  0   NA  NA  0   NA  NA  
NA  NA  NA  0
...



Eric Lecoutre <[EMAIL PROTECTED]> schrieb am 08.02.05 08:55:46:


Hi,

Have a look at:
? aggregate
? reshape

Eric


At 07:39 8/02/2005, you wrote:
>Content-Type: text/plain; charset="iso-8859-1"
>Received-SPF: none (hypatia: domain of [EMAIL PROTECTED] does not designate 
>permitted sender hosts)
>X-Virus-Scanned: by amavisd-new at stat.math.ethz.ch
>Content-Transfer-Encoding: 8bit
>X-MIME-Autoconverted: from quoted-printable to 8bit by 
>hypatia.math.ethz.ch id j186djX0017423
>X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on 
>hypatia.math.ethz.ch
>X-Spam-Level:
>X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_50 autolearn=no 
>version=3.0.2
>
>Hi R-friends,
>
>i have large dataset in the following structure:
>
>BID;TERRCODE;ANMCODE
>200310413290002;4;0
>200310413290002;80;0
>200310413290002;2;0
>200310413290002;5;0
>200310413290003;3;0
>200310413290003;1;0
>200310413290003;11;0
>200310413290003;26;0
>200310413290003;141;21
>200310413290003;472;0
>200310413290004;3;0
>200310413290004;1;0
>200310413290004;7;0
>200310413290004;18;0
>200310413290004;51;0
>200310413290004;56;0
>200310413290004;57;0
>200310413290004;76;0
>200310413290004;89;0
>200310413290004;97;0
>200310413290004;98;0
>200310413290004;72;0
>200310413290004;456;0
>200310413290004;141;0
>200310413290004;640;0
>200310413290004;201;0
>200310413290004;764;20
>200310413290005;273;22
>200310413290005;456;0
>200310413290005;22;0
>200310413290005;23;0
>200310413290005;21;21
>200310413290005;141;0
>200310413290005;640;0
>200310413290005;201;0
>200310413290005;43;0
>200310413290005;650;0
>200310413290005;472;0
>200310413290006;456;0
>200310413290006;22;25
>200310413290006;23;25
>200310413290006;21;25
>200310413290006;640;0
>200310413290006;201;0
>200310413290006;43;0
>200310413290006;651;1
>.
>.
>.
>
>BID is the code of my sample-area
>TERRCODE is the code for landscape characteristic for example: 640 ... sun 
>exposed, .
>ANMCODE ist the value of the TERRCODE: for example 0 means „occuring“, 1 
>means „often occuring“, ..
>
>Now my question: is it possible to get a table with the folllowing structure:
>
>
>BID (TERRCODE)4  (TERRCODE)21 ..
>200310413290002 (ANMCODE)0  (ANMCODE)0 ...
>200310413290003 0  0 ..
>200310413290004 0  0 ..
>200310413290005 0  21 ..
>200310413290006 0 . 25 ..
>.
>.
>
>in this example (TERRCODE) and (ANMCODE) is only for explanation and not 
>necessary for further analysis
>
>
>greetings from the snowy tyrol
>
>helli
>
>platform i386-pc-mingw32
>arch i386
>os mingw32
>system i386, mingw32
>status
>major 2
>minor 0.0
>year 2004
>month 10
>day 04
>language R
>
>__
>Verschicken Sie romantische, coole und witzige Bilder per SMS!
>
>__
>R-help@stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Eric Lecoutre
UCL /  Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium

tel: (+32)(0)10473050
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre

If the statistics are boring, then you've got the wrong numbers. -Edward 
Tufte

_

[R] Data manipulation

2005-02-07 Thread Helmut Kudrnovsky
Content-Type: text/plain; charset="iso-8859-1"
Received-SPF: none (hypatia: domain of [EMAIL PROTECTED] does not designate 
permitted sender hosts)
X-Virus-Scanned: by amavisd-new at stat.math.ethz.ch
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by hypatia.math.ethz.ch id 
j186djX0017423
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on hypatia.math.ethz.ch
X-Spam-Level: 
X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_50 autolearn=no 
version=3.0.2

Hi R-friends,

i have large dataset in the following structure:

BID;TERRCODE;ANMCODE
200310413290002;4;0
200310413290002;80;0
200310413290002;2;0
200310413290002;5;0
200310413290003;3;0
200310413290003;1;0
200310413290003;11;0
200310413290003;26;0
200310413290003;141;21
200310413290003;472;0
200310413290004;3;0
200310413290004;1;0
200310413290004;7;0
200310413290004;18;0
200310413290004;51;0
200310413290004;56;0
200310413290004;57;0
200310413290004;76;0
200310413290004;89;0
200310413290004;97;0
200310413290004;98;0
200310413290004;72;0
200310413290004;456;0
200310413290004;141;0
200310413290004;640;0
200310413290004;201;0
200310413290004;764;20
200310413290005;273;22
200310413290005;456;0
200310413290005;22;0
200310413290005;23;0
200310413290005;21;21
200310413290005;141;0
200310413290005;640;0
200310413290005;201;0
200310413290005;43;0
200310413290005;650;0
200310413290005;472;0
200310413290006;456;0
200310413290006;22;25
200310413290006;23;25
200310413290006;21;25
200310413290006;640;0
200310413290006;201;0
200310413290006;43;0
200310413290006;651;1
.
.
.

BID is the code of my sample-area
TERRCODE is the code for landscape characteristic for example: 640 ... sun 
exposed, .
ANMCODE ist the value of the TERRCODE: for example 0 means „occuring“, 1 means 
„often occuring“, ..

Now my question: is it possible to get a table with the folllowing structure: 


BID (TERRCODE)4  (TERRCODE)21 ..
200310413290002 (ANMCODE)0  (ANMCODE)0 ...
200310413290003 0  0 ..
200310413290004 0  0 ..
200310413290005 0  21 ..
200310413290006 0 . 25 ..
.
.

in this example (TERRCODE) and (ANMCODE) is only for explanation and not 
necessary for further analysis


greetings from the snowy tyrol

helli

platform i386-pc-mingw32
arch i386 
os mingw32 
system i386, mingw32 
status 
major 2 
minor 0.0 
year 2004 
month 10 
day 04 
language R

__
Verschicken Sie romantische, coole und witzige Bilder per SMS!

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] save contigency table

2005-01-26 Thread Helmut Kudrnovsky
Content-Type: text/plain; charset="iso-8859-1"
Received-SPF: none (hypatia: domain of [EMAIL PROTECTED] does not designate 
permitted sender hosts)
X-Virus-Scanned: by amavisd-new at stat.math.ethz.ch
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by hypatia.math.ethz.ch id 
j0QDdhgh026614
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on hypatia.math.ethz.ch
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_50 autolearn=no 
version=3.0.2

hi R-friends,

i build a contigency table with the function table()  which looks like:

 LAGECODE
BID1 2 10 11 12 13 14 15 19 21 22 23 24 31 32 46 47 
54 56 57 62 67 70 71 80 81 82 430 460 
  200310413290143  0 0 0  0  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  1  
1  0  0  0  0  1  0   0  ...
  200310413290144  0 0 0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  
1  0  0  0  0  0  0   0 ...   
  200310413290145  0 0 0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  
0  0  0  0  1  0  0   0  
  200310413290146  0 0 0  0  0  1  0  0  1 .
.
.
.


i want to save this contigency table in a text-file. i tried the function 
write.matrix(tabelle, file="data.txt", sep=";") with following result in the 
text-file:

1;2;10;11;12;13;14;15;19;21;22;23;24;31;32;46;47;54;56;57;62;67;70;71;80;81;82;430;460
0;0;0;0;0;1;0;0;0;0;0;0;0;0;0;1;0;0;0;0;1;1;0;0;0;0;1;0;0
0;0;0;0;0;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;0;0;0;0;0;0;0
0;0;0;0;0;0;0;0;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;0;0;0

is it possible the get an text-file including BID in the first column?  i´ve 
studied the R-help, but i couldn´t find any information about this.

platform i386-pc-mingw32
arch i386   
os   mingw32
system   i386, mingw32  
status  
major2  
minor0.0
year 2004   
month10 
day  04 
language R  

with thanks in advance
greetings
helli

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] variables - data-structure

2004-12-18 Thread Helmut Kudrnovsky
dear R-friends,
i`ve got a large dataset of  vegetation-samples with about 500 
variables(=species) in the following format:

1 spec1
1 spec23
1 spec54
1 spec63
2 spec1
2 spec2
2 spec253
2 spec300
2 spec423
3 spec20
3 spec88
3 spec121
3 spec200
3 spec450
.
.
this means:  sample 1 (grassland) with the species (=spec) 1, 23, 54, 63
is it possible to get a following data-structure for further analysis?
1   2   3   ..
spec1   1   1   0
spec2   0   1   0
spec3
...
spec253 0   1   0
...
spec450 0   0   1
with thanks from the snowy tirol
helli
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] text size + text-dendrogram

2004-11-06 Thread Helmut Kudrnovsky
dear R-friends,
i performed a cluster analysis (diana in package cluster) with about 300 
samples.

two questions:
- if i plot a dendrogram of the analysis, i can´t read the labels of the 
samples, because the size of the label-text is too big and the label-text 
of  3 or 4 samples are mixed. so i can´t read which label belongs to which 
sample. i tried to adjust the text-size with the option cex (a numerical 
vector giving the amount by which plotting text and symbols should be 
scaled relative to the default - from the help for plot.default(graphics)), 
but it didn´t help. the problem exist also, when i export the plot into a 
meta-file or a postscript-file for further work with the dendrogram in an 
other application.

- is it possible to export or save the dendrogram from the R-shell in a 
kind of a text-dendrogramm like:

   I
  -
  II
  ---
  III I
s...sample  s1 s2 s3  s4
os: win xp
R: 2.0.0.
with greetings from the snowy tyrol
helli
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] question on isoMDS

2004-04-12 Thread Helmut Kudrnovsky
Hello everyone,

I have a question on isoMDS.

My data set (of vegetation) with 210 samples is in this way:

  Rotfoehrenau Lavendelweidenau Silberweidenau 
067_Breg.7   02  0 
071_Dona.4  02  6  
...
I want to do an isoMDS-analysis with the dissimilarity index "bray/curtis" 
as discribed in the help-files of the package vegan:

mds.test <- isoMDS(test.bc, initMDS(test.bc), maxit=200, trace=FALSE, tol=1e-7)

Then I get following error message:

"Error in isoMDS(test.bc, initMDS(test.bc), maxit = 200, trace = FALSE,  :
zero or negative distance between objects 19 and 20"
The objects 19 and 20 have the same variables in the same way and therefore 
they have a zero distance.

My question is: Is it possible to perform an isoMDS with a data set where 
some samples have the same variables in the same way?

with greetings from Tyrol
Helli Kudrnovsky
R: 1.8.1
OS: Win98
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Problems with read.table()

2003-12-22 Thread Helmut Kudrnovsky
R version 1.8.1, OS Windows 98

Dear colleagues,

if I import vegetation data (first row with column labels and first column 
with row labels) like

7MYRGERM;7AGRGIGA;7DRYOCTO;5MYRGERM;7SALELEA;7CHOCHON;7SALNIG°;...
t401;5;2;2;3;4;2;2;2;1;2;1;2;2;1;2;2;2;1;2;1;0;0;..
t403;3;0;0;6;4;0;3;0;0;3;0;0;0;0;3;0;0;0;2;0;2;0;.
with read.table("data.file", header=TRUE, separator=";"), the R program 
crashes with following error message:

RGUI verursachte einen Fehler durch eine ungültige Seite
in Modul R.DLL bei 015f:6b515b87.
Register:
EAX=0075007a CS=015f EIP=6b515b87 EFLGS=00010246
EBX=01bd3f57 SS=0167 ESP=0073ed20 EBP=0073ed48
ECX=01bd3ad8 DS=0167 ESI=0001 FS=2237
EDX=ffb0 ES=0167 EDI=0008 GS=
Bytes bei CS:EIP:
0f b7 04 50 83 e0 08 eb ce 89 5d ec eb 8b 89 74
Stapelwerte:
 0073ee20 019ea008 0007 2000 003b 00b0 0073ee20 
0006 01bd5f58 0073edb8 6b5162ef 0010 0001 0073ed8c 0073ee20

with greetings from Tyrol
Helmut Kudrnovsky
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help