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 > from"reduced_mat") to a pdf. It works with the following parameters: > > pdf("test.pdf&q

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 so

[R] figure-definition and heatmap question

2007-08-23 Thread Antje
ot; spezifiziert > par(fin=c(8.0,8.0)) > cp <- colorRampPalette(c("white","springgreen","darkgreen"),space="Lab") > heatmap(x, Rowv = NA, Colv = NA, scale="none", col=cp(200)) Fehler in par(op) : ungültiger Wert für den Grafikpar

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) * n

[R] Package installation

2007-08-24 Thread Antje
allation method... 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 pr

Re: [R] figure-definition and heatmap question

2007-08-24 Thread Antje
io as the matrix is to get squares... If I understood everything now, I have to think about something else than heatmap to make sure to get squares, right? Thanks, Jim, I'll test this method for my purpose :) Ciao, Antje > > Paul > > >>> And another question concerning

[R] run self written functions

2006-08-03 Thread Antje
ties to debug in a way). Maybe, I 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] 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

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, reprodu

[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: >>

[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 the

[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

Re: [R] Readline - wait for user input

2007-06-18 Thread Antje
r(pos_name, 2,nchar(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 co

[R] Readline

2007-06-18 Thread Antje
r(pos_name, 2,nchar(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. &g

[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 matr

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

2007-07-30 Thread Antje
't know, how to combine the result list with the categories... Does it become clearer? Probably, I 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. > Impor

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

2007-07-30 Thread Antje
0.228020092 [[8]] [1] NA now, I need the means (and sd) of element 1 of list[2],list[3],list[4] (because they belong 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 mea

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

2007-07-30 Thread Antje
void the list, 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

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:

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

2007-07-31 Thread Antje
pply(t, 2, mean) } else { 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'

[R] remove NA rows and columns

2007-07-31 Thread Antje
11 [2,] 22 [3,] 11 [4,] 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, minim

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,

[R] need help with pdf-plot

2007-08-01 Thread Antje
d...). What shall I look 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, sel

[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)) ?

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

2007-01-11 Thread Antje
sapply, I call 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-containe

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

2007-01-11 Thread Antje
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-subp

[R] sapply and its return value

2007-02-15 Thread Antje
guess...) Could anybody give me a hint? 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/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? An

Re: [R] tapply, levelinformation

2007-02-16 Thread Antje
le files), which belong 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] sapply again return value

2007-02-16 Thread Antje
; mode(s) [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/li

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

[R] variables with dynamic names?

2006-10-24 Thread Antje
it at the position in a result matrix). 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 pr

Re: [R] variables with dynamic names?

2006-10-25 Thread Antje
... } } } (It was quite simple, but I did not find 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 file

[R] extract values from a vector

2006-11-01 Thread Antje
equal to one of the elements in V2 I could do: which(V1 == V2[1] | V1 == V2[2]) but what if I don't 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/

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

[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-p

[R] barplot help needed

2006-11-24 Thread Antje
,1,1,0.6)) plotInfo <- barplot(data1, 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 __

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

Re: [R] barplot help needed

2006-11-24 Thread Antje
2), nrow=2, byrow=TRUE) it works (but maybe there is an easier way...) Antje Jacques VESLOT schrieb: > thought sd1, sd2... were scalars but if not just do: > etype <- c(sd1, sd2, sd3, sd4) > --- > Jacques VESLOT &g

[R] Multiple plots via sapply or lapply?

2007-01-07 Thread Antje
7;t know how to handle the x,y values for each 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

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

2005-11-24 Thread Antje Döring
Thank you 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] panel order in xyplot

2005-12-22 Thread Antje Döring
rameter in xyplot I can add to achieve this result? Any parameter where 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://

[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 [[altern

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

2006-01-10 Thread Antje Schüle
cies as a line 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-

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

2006-01-10 Thread Antje Schüle
e use 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 agai

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

2006-01-16 Thread Antje Schüle
is is not the case, 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 yo

[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

[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 he

[R] Comparing rows of matrices with different dimensions

2005-11-21 Thread Antje Döring
and 3) Till now 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

[R] problem with "parse"

2005-11-22 Thread Antje Döring
I have overlooked? Can't I put special characters like "$" or "," into this test-character? Thanks a lot for your help. Best, Antje [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list http