Re: [R] Supressing axes 3 and 4 when using plot()

2010-05-06 Thread Thomas Roth
Cou could add a box if i understand the problem correctly box() -Ursprüngliche Nachricht- Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von Dan Edgcumbe Gesendet: Donnerstag, 6. Mai 2010 10:54 An: r-help@r-project.org Betreff: [R] Supressing axes 3 and

Re: [R] P values

2010-05-06 Thread Thomas Roth
Why s = 1 ## s = sd(A) #? -Ursprüngliche Nachricht- Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von level Gesendet: Mittwoch, 5. Mai 2010 22:41 An: r-help@r-project.org Betreff: [R] P values How do u calculated p values for a z test.. so far i

Re: [R] R-Documentation including an image?

2010-03-16 Thread Thomas Roth
Thank you for the info, I couldn't find anything in the documentation and wasn't sure ut now I know for sure. -Ursprüngliche Nachricht- Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von Dieter Menne Gesendet: Dienstag, 16. März 2010 14:36 An: r-help@r-p

[R] locator and print

2010-01-04 Thread Thomas Roth
Hi, Using the following R-Code the printing via print takes place after locator although print is placed before locator ### test = function() { plot(1:10) print("test") locator(1) } test ### Is there some way to force the printing before locator is being evaluated. I assume that there is some b

[R] TRIANGLE AW: lattice: shape of box around wireframe

2009-12-18 Thread Thomas Roth
an basically do anything after the axes and the transformations have been set up. --- Thomas -Ursprüngliche Nachricht- Von: David Winsemius [mailto:dwinsem...@comcast.net] Gesendet: Freitag, 18. Dezember 2009 15:32 An: Thomas Roth Cc: 'Deepayan Sarkar'; r-help@r-project.or

Re: [R] lattice: shape of box around wireframe

2009-12-18 Thread Thomas Roth
) #needed: rectangular bounding box wireframe(z ~ x*y) now what i'm looking for is a rectangular bounding box but I don't know where to start... Thomas -Ursprüngliche Nachricht- Von: Deepayan Sarkar [mailto:deepayan.sar...@gmail.com] Gesendet: Freitag, 18. Dezember 2009 14:29 An: Th

[R] lattice: shape of box around wireframe

2009-12-18 Thread Thomas Roth
far I've read "Lattice: Multivariate Data Visualization with R" and searched through the mailing list. I'm grateful for any ideas or hints. Thanks in advance, Thomas Roth __ R-help@r-project.org mailing list https://stat.ethz.ch/mai

Re: [R] Grid lines

2009-07-30 Thread Thomas Roth (geb. Kaliwe)
y") #verticall lines abline(h = yticks, col = "gray", lty = 3) #horizontal lines legend(8,12, legend = c("test", "test"), col = 1:2, pch = 1:2, xpd = TRUE) points(1:10) Thomas Roth Chris Li schrieb: Hi everyone. I am new to R. It will be greatly appreciat

Re: [R] Grid lines

2009-07-30 Thread Thomas Roth (geb. Kaliwe)
t;gray") #verticall lines abline(h = yticks, col = "gray", lty = 3) #horizontal lines legend(8,12, legend = c("test", "test"), col = 1:2, pch = 1:2, xpd = TRUE) points(1:10) Thomas Roth Chris Li schrieb: Hi everyone. I am new to R. It will be greatly appr

Re: [R] Adding picture to graph?

2009-07-29 Thread Thomas Roth (geb. Kaliwe)
Have a look at http://www.stat.auckland.ac.nz/~paul/RGraphics/chapter3.html Picture 3.26 Thomas Roth Rainer M Krug schrieb: Hi while teaching R, the question came up if it would be possible to add a picture (saved on the HDD) to a graph (generated by plot()), which we could not answer

Re: [R] SOLVED: how to evaluate character vector within pnorm()

2009-07-17 Thread Thomas Roth (geb. Kaliwe)
help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Thomas Roth (geb. Kaliwe) Sent: Friday, 17 July 2009 6:03 PM To: 'r-help@r-project.org' Subject: [R] how to evaluate character vector within pnorm() Hi, I'm trying to evaluate a character vector within pnorm. I

[R] how to evaluate character vector within pnorm()

2009-07-17 Thread Thomas Roth (geb. Kaliwe)
3" #Problem is that both values 2 and 3 are taken as values for the mean argument in pnorm pnorm(0, eval(parse(text = temp)) ) #but not as pnorm(0, mean = 2, sd = 3 ) #How can i get pnorm(0, eval(parse(text = temp)) ) #to do pnorm(0, mean = 2, sd = 3 ) Thank you for your time Tho

Re: [R] SOLVED: how to check if ... is empty

2009-07-16 Thread Thomas Roth (geb. Kaliwe)
Thank you both. Thomas Dimitris Rizopoulos schrieb: one way is: test <- function(x, y, ...) { dots <- list(...) if (length(dots)) cat("\nnon-empty\n") else cat("\nempty\n") } test(1, 1) test(1, 1, 1) I hope it helps. Best, Dimitris Thomas Roth (geb.

[R] how to check if ... is empty

2009-07-16 Thread Thomas Roth (geb. Kaliwe)
Thomas Roth __ R-help@r-project.org 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] paste (" " x " ")

2009-07-14 Thread Thomas Roth (geb. Kaliwe)
maybe this helps x = "\"test\"" plot(1:10, main = x) #heading contains " " #or cat("\"test\"") Thomas Roth Paulo E. Cardoso schrieb: maybe a very basic question but I need to parse an SQL code into a GIS from a ODBC conn. The code

Re: [R] more than one mathematical annotation into a legend

2009-07-10 Thread Thomas Roth (geb. Kaliwe)
in the legend there's x but not the value of x which actually should be shown... #does not work x = 2 plot(1:10) legend(4,4, expression(t[m] == x, t[n] == x)) #legend contains x but not the value of x So this won't work Zhiliang Ma schrieb: On Thu, Jul 9, 2009 at 9:39 AM, T

[R] more than one mathematical annotation into a legend

2009-07-09 Thread Thomas Roth (geb. Kaliwe)
Dear members, Is there a way to put more than one mathematical annotation into a legend together with a calculated value? x = 2 plot(1:10) #Works legend(8, 8, substitute(t[m] == x)) #does not work legend(4,4, c(substitute(t[m] == x), substitute(t[n] == x))) Thanks Thomas Roth

Re: [R] lattice wireframe within a loop ??? - solved

2009-06-24 Thread Thomas Roth (geb. Kaliwe)
. ~ John Tukey -Oorspronkelijk bericht- Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens Thomas Roth (geb. Kaliwe) Verzonden: woensdag 24 juni 2009 13:08 Aan: 'r-help@r-project.org' Onderwerp: [R] lattice wireframe within a loop ??? Hi, I have the

[R] lattice wireframe within a loop ???

2009-06-24 Thread Thomas Roth (geb. Kaliwe)
p and get a wireframe? Greetings Thomas Roth __ R-help@r-project.org 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-cont

[R] S4 Package with definition of method 'names'

2009-06-11 Thread Thomas Roth (geb. Kaliwe)
the method for function "names" and signature ="" is sealed and cannot be re-defined Calls: ... sys.source -> eval -> eval -> removeMethod -> setMethod Execution halted make[2]: *** [lazyload] Error 1 make[1]: *** [a

[R] possible overloading of interaction.plot ???

2009-06-03 Thread Thomas Roth (geb. Kaliwe)
defined. Is there a solution that keeps the original interaction.plot and lets me define a interaction.plot for objects of my S4-Class? Thank you for your time Thomas Roth __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Create Pie chart from .csv file

2009-05-05 Thread Thomas Roth (geb. Kaliwe)
Sorry for mailing to you personally... for types read.csv(file.choose()) freqTable = table(types) pie(freqTable) ##example for some data temp = data.frame(types = 1:10) pie(table(temp)) Thomas Roth PS: use barplot instead of pie DonkeyRhubarb schrieb: Hi all, I am looking to create a pie

Re: [R] Import R-output into Java

2009-03-19 Thread Thomas Roth (geb. Kaliwe)
#I used sink ?sink #Thomas Maxl18 schrieb: Hello, I want to import R-output via Rserve to Java, especially for the function ctree from the package party. Rserve is working properly. Yet, I only get the predictions with the Java code try{ RConnection c = new RConnection();

[R] S4 coerce as.data.frame for lm

2009-03-10 Thread Thomas Roth (geb. Kaliwe)
"test", function(x, row.names = NULL, optional = FALSE) { return(x...@data) } ) as.data.frame(temp) #works lm(eruptions ~ waiting, data = temp) #doesn't work #Thank you for any hints #Thomas Roth #from the lm help page |#data| - an optional data frame, list or environmen

Re: [R] lattice: remove box around a wireframe

2009-03-04 Thread Thomas Roth (geb. Kaliwe)
a = test, par.settings = list(axis.line = list(col = "transparent")), par.box = c(col = "transparent") ) --sundar On Wed, Mar 4, 2009 at 8:17 AM, Thomas Roth (geb. Kaliwe) wrote: #Hi, # #somebody knows how to remove the outer box around a wireframe and reduce the height # #

[R] lattice: remove box around a wireframe

2009-03-04 Thread Thomas Roth (geb. Kaliwe)
, data = test, par.box = c(col = "transparent") ) #not this one but the remaining outer box. Thanks in advance Thomas Roth __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://

Re: [R] Help on BarPlot

2009-02-10 Thread Thomas Roth (geb. Kaliwe)
Hi, #There are a lot of examples for barplot if you just type example(barplot) # i altered one slightly to put the values on top of each bar mp <- barplot(VADeaths) # default #tot <- colMeans(VADeaths) #changed this line tot = colSums(VADeaths)#wether you need max, min, mean , colSum

Re: [R] plot Ticks

2009-01-27 Thread Thomas Roth (geb. Kaliwe)
you could set them manually, if thats what you're looking for plot(1:10, axes = F) axis(1, at = seq(1,10 , length = 3)) mau...@alice.it schrieb: Is there a way to force the number of ticks along an axis ? I read the on-line documentation and tried many combinations of all available parameters

Re: [R] Tinn-R

2009-01-26 Thread Thomas Roth (geb. Kaliwe)
First thing you need to do is, save the file with an .r ending. Tinn-R will then come up with syntax highlighting (as far as i remember). Options->Main->Application leads you to the r-configuration... HTH Thomas Tibert, Brock schrieb: Tibert, Brock schrieb: Hi Everyone, I was hoping someo