Re: [R] figure-definition and heatmap question

2007-08-24 Thread Antje
There is no one who could help me with this? Antje schrieb: Hello, I have two questions. I'd like to visualize data with a heatmap and I have the following testcase: x - rnorm(256) nx - x + abs(min(x)) nnx - 255/max(nx) * nx x - matrix(nnx, 16, 16) rownames(x) - c(A,B,C,D,E,F,G,I

[R] Package installation

2007-08-24 Thread Antje
... Maybe, I simply do something wrong? Thanks for any hint! Antje __ 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

Re: [R] figure-definition and heatmap question

2007-08-24 Thread Antje
, right? Thanks, Jim, I'll test this method for my purpose :) Ciao, Antje Paul And another question concerning the heatmap: May I force the funtion to plot A1 at the upper left corner instead of the lower left? I'll be glad about any idea how to solve these problems... Ciao, Antje

[R] figure-definition and heatmap question

2007-08-23 Thread Antje
of the lower left? I'll be glad about any idea how to solve these problems... Ciao, Antje __ 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] need help with pdf-plot

2007-08-13 Thread Antje
Thank you both! The hint with the pty=s was very useful. I did not know it before. Ciao, Antje Ivar Herfindal schrieb: Dear Antje I cannot see that you have got any replies yet, so I will make and attempt. However, I am sure other have more formally correct solutions. When you call

Re: [R] need help with pdf-plot

2007-08-10 Thread Antje
I still have this problem. Does anybody know any solution? Antje Antje schrieb: Hello, I'm trying to plot a set of barplots like a matrix (2 rows, 10 columns fromreduced_mat) to a pdf. It works with the following parameters: pdf(test.pdf,width=ncol(reduced_mat)*2, height=nrow

[R] need help with pdf-plot

2007-08-01 Thread Antje
for to achieve this? Antje __ 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.

Re: [R] how to combine data of several csv-files

2007-07-31 Thread Antje
Hi Jim, that's exactly what I'm looking for. Thank you so much. I think, I should look for some further documentation on list handling. Many thanks also to [EMAIL PROTECTED] ;) for spending time in finding a solution... Have a nice day! Antje jim holtman schrieb: This should do it: v1

Re: [R] how to combine data of several csv-files

2007-07-31 Thread Antje
{ if(nrow(t) == 1) { as.vector(t) } else { NA } } }) Probably, there is a simpler solution to remove the NA rows, but it works ;); also with sd. Ciao, Antje 8rino-Luca Pantani schrieb: Hi Jim, that's exactly what I'm looking for. Thank you so much. I think, I should

[R] remove NA rows and columns

2007-07-31 Thread Antje
,] 22 Ciao, Antje __ 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.

Re: [R] remove NA rows and columns

2007-07-31 Thread Antje
Hello, thank you both very much! It is as easy as expected... (I think I still have to learn a lot!) Have a nice day! Antje Vladimir Eremeev schrieb: Or, these operations can be called in one command: testmatrix[-which(apply(testmatrix,1,function(x)all(is.na(x,-which(apply(testmatrix

[R] how to combine data of several csv-files

2007-07-30 Thread Antje
Hello, I'm looking for a solution for the following problem: 1) I have a folder with several csv files; each contains a set of measurement values 2) The measurements of each file belong to a position in a two dimensional matrix (lets say B02.csv belongs to position 2,2 3) The size of the

Re: [R] how to combine data of several csv-files

2007-07-30 Thread Antje
try to provide a simple example but this will take some time to prepare... Thanks anyway! Antje 8rino-Luca Pantani schrieb: I'm unclear to what it is your problem. Import files into data frame? Combine them in one dataframe? Some (written) examples of the files would help people to help you

Re: [R] how to combine data of several csv-files

2007-07-30 Thread Antje
to cat1) and = mean(-0.6442149, 0.02354036, -1.40362589) the same for element 2 up to element 6 (-- I would the get a vector containing the means for cat1) the same for the vectors belonging to cat2. does anybody now understand what I mean? Antje __ R

Re: [R] how to combine data of several csv-files

2007-07-30 Thread Antje
, because this is the result of the processing I did before... Ciao, Antje 8rino-Luca Pantani schrieb: I hope I see. Why not try the following, and avoid lists, which I'm not still able to manage properly ;-) v1 - NA v2 - rnorm(6) v3 - rnorm(6) v4 - rnorm(6) v5 - rnorm(6) v6 - rnorm(6

Re: [R] Readline - wait for user input

2007-06-18 Thread Antje
(pos_name)) Thank you! Antje Peter Dalgaard schrieb: Forest Floor wrote: Hi, I've seen various posts on this question, but still can't get the code right. If I run the following code one line at a time, it works fine. If I run it together as a block, however

[R] Readline

2007-06-18 Thread Antje
)) Thank you! Antje Peter Dalgaard schrieb: Forest Floor wrote: Hi, I've seen various posts on this question, but still can't get the code right. If I run the following code one line at a time, it works fine. If I run it together as a block

[R] choose.dir

2007-06-08 Thread Antje
Hi all, I have written a R-script under Windows using choose.dir. Now, I have seen that this function is missing at MacOS. Does anybody know an alternative? Antje __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] choose.dir

2007-05-02 Thread Antje
Hi all, I have written a R-script under Windows using choose.dir. Now, I have seen that this function is missing at MacOS. Does anybody know an alternative? Antje __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] choose.dir

2007-05-02 Thread Antje
Thank you. For Windows it works, I'll check whether it also works for Mac :) Gabor Grothendieck schrieb: I don't have a Mac but perhaps this works: library(tcltk) tclvalue(tkchooseDirectory()) On 5/2/07, Antje [EMAIL PROTECTED] wrote: Hi all, I have written a R-script under Windows

Re: [R] tapply, levelinformation

2007-02-16 Thread Antje
to different conditions (one or more files per condition). I wanted to read the data set and a description of the conditions and then automatically create plots for data of the same condition. Maybe it's much to complicate the way I do... Antje __ R-help

[R] sapply again return value

2007-02-16 Thread Antje
) [1] list dim(s) [1] 3 3 Now, I'd like to remove the columns which contain NULL (it's alway the whole column). How can I do this??? Antje __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] sapply again return value

2007-02-16 Thread Antje
Henrique Dallazuanna schrieb: Hi, A simple way is: s - s[3] but what if I don't know how many and which columns are NULL? Antje __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] sapply and its return value

2007-02-15 Thread Antje
you! Antje __ 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] tapply, levelinformation

2007-02-15 Thread Antje
Hello, I have another question. I would like to plot something within a self written function (plotdensity) called by tapply t - tapply(mat, classes, plotdensity) Now I would like to add each plot the class/level as title. How can I do this? Antje

[R] Error in plot.new() : Figure margins too large

2007-01-11 Thread Antje
barplot What is wrong??? Antje __ 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

Re: [R] Error in plot.new() : Figure margins too large

2007-01-11 Thread Antje
of windows / margins and plotting areas. Maybe someone can help me (even with a good overview on these basics...) Antje Peter Dalgaard schrieb: Antje wrote: Hello, was could be the reason for such an error message??? Generically, that the (per-subplot) figure region is so small

[R] tapply, how to get level information

2007-01-08 Thread Antje
Hello, I'm applying a self-written function to a matrix on basis of different levels. Is there any way, to get the level information within the self-written function??? t - tapply(mat, levels, plotDensity) plotDensity - function(x) { ??? print(level(x)) ??? } Antje

[R] Multiple plots via sapply or lapply?

2007-01-07 Thread Antje
plot into an sapply (or lapply, I don't know) Any idea? Maybe, I should somehow change the return type? Antje __ 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

[R] barplot help needed

2006-11-24 Thread Antje
, las=2, ylim = c(0,plotMax+1), ylab = Percentage) arrows(plotInfo,data1,plotInfo, data1 + sd1, length=0.1, angle=90) arrows(plotInfo,data1,plotInfo, data1 - sd1, length=0.1, angle=90) could anybody give me a help on this? Antje __ R-help

Re: [R] barplot help needed

2006-11-24 Thread Antje
Thank you very much for your help. I just don't understand the following line (which also gives me a dimension error later in the arrows command) etype - rep(c(sd1, sd2, sd3, sd4), length(data1)) Antje (I don't see my emails to the mailinglist anymore... just the answers from other people

Re: [R] barplot help needed

2006-11-24 Thread Antje
...) Antje Jacques VESLOT schrieb: thought sd1, sd2... were scalars but if not just do: etype - c(sd1, sd2, sd3, sd4) --- Jacques VESLOT CNRS UMR 8090 I.B.L (2ème étage) 1 rue du Professeur Calmette B.P. 245 59019 Lille

[R] barplot - x-axis

2006-11-23 Thread Antje
(data, las=2, ylim = c(0,plotMax+1), ylab = Percentage, main = filename, sub = subtitle) Thank you! Antje __ 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

[R] extract values from a vector

2006-11-01 Thread Antje
know the length of V2 and it's content??? Thank you in advance! Antje __ 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

Re: [R] extract values from a vector

2006-11-01 Thread Antje
Bernd Weiss schrieb: Am 1 Nov 2006 um 14:49 hat Antje geschrieben: Date sent:Wed, 01 Nov 2006 14:49:43 +0100 From: Antje [EMAIL PROTECTED] To: R-help@stat.math.ethz.ch Subject: [R] extract values from a vector Hello, I'm

Re: [R] variables with dynamic names?

2006-10-25 Thread Antje
the paste command before...) If there is something which could be done easier, just let me know. Ciao, Antje Antje schrieb: Hello, I have the following problem. I have a set of CSV files and they are named for a special position in a matrix (e.g. A01.csv, F06.csv, H11.csv) Now, I would

[R] variables with dynamic names?

2006-10-24 Thread Antje
). How can I realize this with R? Ciao, Antje __ 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

[R] two density curves in one plot?

2006-08-23 Thread Antje
Hello, I was wondering if I can plot two curves I get from density(data) into one plot. I want to compare both. With the following commad, I just get one curve plotted: plot( density(mydata) ) Sorry for this stupid question but I could not find a solution until now... Antje

Re: [R] two density curves in one plot?

2006-08-23 Thread Antje
Thank you both very much. It works! __ 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,

[R] run self written functions

2006-08-03 Thread Antje
have chosen a completely wrong way? I only want to make it easy to create some graphical visualizations of data which will be read in by csv. files, has to be converted and then displayed depending on some displaying parameters. Ciao, Antje __ R-help

[R] label of second y-axis in xyplot (lattice)

2006-01-16 Thread Antje Schüle
, but the example should just visualize my question.) So here in this case I'd like to have two labels. On the normal y-side (axis2) the label = Precip, on the other side (axis4) the label Temp. Thanks for your help. Antje [[alternative HTML version deleted

Re: [R] two y-axis in xy-plot

2006-01-10 Thread Antje Schüle
during the hours. Is this possible with two y-axes? Thanks for your help, Antje -Ursprüngliche Nachricht- Von: Deepayan Sarkar [mailto:[EMAIL PROTECTED] Gesendet: Montag, 9. Januar 2006 18:08 An: Antje Schüle Cc: r-help@stat.math.ethz.ch Betreff: Re: two y-axis in xy-plot On 1/9/06

Re: [R] two y-axis in xy-plot

2006-01-10 Thread Antje Schüle
of the xyplot in library(lattice) in combination with the second y-axis. Thanks. Antje --- It is nearly the same example I wrote about in http://www.mail-archive.com/r-help@stat.math.ethz.ch/msg54238.html. I'll print it out again

[R] two y-axis in xy-plot

2006-01-09 Thread Antje Schüle
Hi there, I am wondering if it is possible to do an xyplot with two y-axes. I'd like to print two parameters in a time series but they both have different scales. Which parameter in xyplot can I add to achieve this result? Thanks a lot for any help. Antje [[alternative

[R] panel order in xyplot

2005-12-22 Thread Antje Döring
I can tell how the panels have to be arranged? Thanks a lot for any help. Antje [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] How to save an object list as txt?

2005-11-24 Thread Antje Döring
very much for your help. Regards, Antje [[alternative HTML version deleted]] __ 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] problem with parse

2005-11-22 Thread Antje Döring
for your help. Best, Antje [[alternative HTML version deleted]] __ 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] Comparing rows of matrices with different dimensions

2005-11-21 Thread Antje Döring
I have tried things like b %in% a[,1:2] or so but that doesn't work because I want to compare the WHOLE row of b with the whole row of a without column 3. Thank you very much for any help. Regards, Antje [[alternative HTML version deleted

[R] Using ComputerModern-Fonts with Matplot

2005-11-20 Thread Antje
Hi There, I am trying to use ComputerModern Fonts with the matplot-command. Is that possible and what command do I have to use? Thanks, Antje __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] R-help: conversion of long decimal numbers into hexadecimal

2005-11-10 Thread Antje Döring
Hi there, could somebody help me to convert a decimal number into a hexadecimal number? I know that there is the function sprintf, but the numbers I want to convert consist of 20 or more numbers. Spintf is not able to convert these big numbers. Thanks for any help. Antje

[R] R-help: conversion of long decimal numbers into hexadecimal numbers

2005-11-10 Thread Antje Döring
Hi there, could somebody help me to convert a decimal number into a hexadecimal number? I know that there is the function sprintf, but the numbers I want to convert consist of 20 or more numbers. Spintf is not able to convert these big numbers. Thanks for any help. Antje Döring