[R] warning in library(GRASS)

2007-08-07 Thread javier garcia-pintado
Hi, With your help I've found out that library(GRASS) is the responsible for several warnings I'm obtaining. I've got a loop (~100 runs) and for every loop, I'm carrying out several operations over a sequence of raster maps (12) read from the GRASS GIS. But for every map and loop I always use RGRA

[R] warnings()

2007-08-06 Thread javier garcia-pintado
Hi, Is there a way to know which library is giving a warning? Specifically, I'm getting a set of warnings: "Too many open raster files" Thanks and best wishes, -- Javier García-Pintado Institute of Earth Sciences Jaume Almera (CSIC) Lluis Sole Sabaris s/n, 08028 Barcelona Phone: +34 934095410 F

[R] chron() question

2007-06-18 Thread javier garcia-pintado
Hi all, I'm using chron and it seems to me that there is a strange behaviour when constructing chronological objects. An extract of my source data is: > tdr.hhmm[4860:4870] [1] "22:22:00" "22:42:00" "23:02:00" "23:22:00" "23:42:00" "00:02:00" [7] "00:22:00" "00:42:00" "01:02:00" "01:22:00" "01:4

[R] help with this indexing

2007-05-21 Thread javier garcia-pintado
Hi all, Let's say I have a long data frame and a short one, both with three colums: $east, $north, $value And I need to fill in the short$value, extracting the corresponding value from long$value, for coinciding $east and $north in both tables. I know the possibility: for (i in 1:length(short$valu

Re: [R] indexing

2007-02-02 Thread javier garcia-pintado
> a[match(x, a$class), "value"] > [1] 6.5 6.5 12.0 NA NA 8.5 NA 7.5 12.0 12.0 12.0 > > > > -- Tony Plate > > javier garcia-pintado wrote: >> Hello, >> In a nutshell, I've got a data.frame like this: >> >> >>> assignation &l

[R] indexing without looping

2007-02-01 Thread javier garcia-pintado
Hello, I've got a data.frame like this: > > assignation <- data.frame(value=c(6.5,7.5,8.5,12.0),class=c(1,3,5,2)) > > assignation > value class 1 6.5 1 2 7.5 3 3 8.5 5 4 12.0 2 > > > and a long vector of classes like this: > > x <- c(1,1,2,7,6,5,4,3,2,2,2...)

[R] indexing

2007-02-01 Thread javier garcia-pintado
Hello, In a nutshell, I've got a data.frame like this: > assignation <- data.frame(value=c(6.5,7.5,8.5,12.0),class=c(1,3,5,2)) > assignation value class 1 6.5 1 2 7.5 3 3 8.5 5 4 12.0 2 > and a long vector of classes like this: > x <- c(1,1,2,7,6,5,4,3,2,2,2...) And

[R] gstat package. "singular" attibute

2007-01-05 Thread javier garcia-pintado
Hello, I'm using the gstat package within R for an automated procedure that uses ordinary kriging. I can see that there is a logical ("singular") atrtibute of some adjusted model semivariograms: .- attr(*, "singular")= logi TRUE I cannot find documentation about the exact meaning and the implicat

[R] xaxt="n" for image()

2006-12-19 Thread javier garcia-pintado
Hi, The argument xaxt="n" for removing the x axis from a image plot does not work for me. I'm really using a function called plot.grassmeta() in library GRASS that is a wrapper for image(), but it seems to me that the problem is not in plot.grassmeta() but in image(). If I'm right could you tell m

Re: [R] expression()

2006-12-13 Thread javier garcia-pintado
this would be perfect for my plots, as I use them for papers to be published. Wishes, Javier -- Benilton Carvalho wrote: > mtext(expression(beta[max]), side=1, line=2) > > is it what you want? > > b > > On Dec 12, 2006, at 10:59 AM, j

[R] expression()

2006-12-12 Thread javier garcia-pintado
Hi, I'm trying to use expression() to write a text to a graphic in the margin. Using: mtext(expression(beta),side=1,line=2) writes a perfect beta greek character, but I need to add a subindex "max", and I'm trying: mtext(paste(expression(beta),"max"),side=1,line=2) simply writes "beta max" in

[R] which() over a matrix

2006-11-23 Thread javier garcia-pintado
Hello, A brief question that I am not able to resolve by my own, but I presume it's easy for you: I've used apply to find the values closer to 0 in each row of a matrix: closer.to.0 <- apply(abs(myarray),MARGIN=1,"min") My question is how could I use which (or another way) to obtain a vector tha

[R] tcltk: help pop-up

2006-07-11 Thread javier garcia-pintado
Hi all; Please, does anyone have a piece of R-tcltk code that includes a help pop-up for any item and could send it as an example? thanks and best regards, Javier -- Javier García-Pintado Institute of Earth Sciences Jaume Almera (CSIC) Lluis Sole Sabaris s/n, 08028 Barcelona Phone: +34 9340954

[R] interacting with X11() device

2006-06-01 Thread javier garcia-pintado
Hello; I'm preparing a simple function that plots sequentially a number of time series for visual inspection, after some previous transformations. To allow the user to have time to see the series I'm using Sys.sleep(1.5) between calls to line(). But is it possible to add some mechanism that would

[R] tcltk error when calling a dialog

2006-03-02 Thread javier garcia-pintado
Hello; I've got several radiobuttons in tcltk with the following sintaxis: tk2.rd <- /tkradiobutton(/frame4,command=plotDialog1,text="New Q plot", value=2, variable=OUTPLOTtclVar/)/ All the buttons call the same function "plotDialog1". With the objective of call a dialog to select some plotting

[R] TclTk library loading (whole version) Linux

2006-02-27 Thread javier garcia-pintado
Hello; Well, I'm afraid this is the second related problem I report in two days (I'm sorry for this) I've programmed a tcltk interface for a model and it includes a comboBox. The comboBox widget comes with the "BWidgets" library of Tcl/Tk. It works all perfectly with the windows R GUI (with the

Re: [R] R script autoload at startup

2006-02-27 Thread javier garcia-pintado
second question is that RGui is not written in tcltk > (can't you tell from the speed with which it works?), but there are > documented R functions for you to add menu items, such as winMenuAdd. > > (I do wonder how you missed these in the searches for help, as all the > terms

Re: [R] R script autoload at startup

2006-02-24 Thread javier garcia-pintado
Samuelson escribió: > Do you need the user to interact with the Rgui after the code has run? > > -Frank > > Javier Garcia-Pintado wrote: > > Hello; > > I'm now using mainly R for windows, mainly because I'm writing a > > tcl/Tk interface for some

[R] R script autoload at startup

2006-02-24 Thread Javier Garcia-Pintado
Hello; I'm now using mainly R for windows, mainly because I'm writing a tcl/Tk interface for some people, and I've got two questions. I'm an absolute beginner with tctk or tcktk use under the R GUI. 1) Is it posible to create a shorcut that launchs the R GUI and automatically reads the "source

[R] time series plots: labels language & tickmarks

2005-08-22 Thread javier garcia - CEBAS
Hi all; My native language is spanish and I would need to do two changes in the default xlabels in timeseries plots: a) For timeseries that span more than one year, there are just xlabs and tickmarks for the beginning of each year. Could I add extra tick marks for each month easily? b) The x

[R] about image() function in R and colors

2005-07-07 Thread javier garcia
the map with those colors but it doesnt work and the colors are changed. I would like that all points belonging to level1 are color 1 , and so on... Please could you tell me if this procedure is not correct? Best regards, Javier -- A. Javier Garcia Water and Soil conservation departme

[R] Resolved - Re: X11 font problem (was Re: ploting error)

2005-06-15 Thread javier garcia
ribió: > On Wed, 15 Jun 2005, javier garcia wrote: > > I've tried to execute an R script that I used to use with older versions > > with no problem. In the scrip ,I try to create a series of plots in png > > format, and now there is an error (my actual verion is R2.0.1) &

[R] ploting error

2005-06-15 Thread javier garcia
ze 14 could not be loaded Perhaps I did something wrong with this new install? Thanks and best regards, Javier -- A. Javier Garcia Water and Soil conservation department CEBAS-CSIC Campus Universitario Espinardo PO BOX 164 30100 Murcia (SPAIN) Phone: +34 968 39 62 57 Fax: +34 968 39 62 13

[R] finding cols and rows in a matrix

2005-04-28 Thread javier garcia
Hi Ive got big matrixes with just few non missing data, and would like to use or do a funtion to find the index of the row and col of one specified value. For example I just have one "1" value in the matrix, and one "2" value in the same matrix. Has anyone an idea about how to extract the rowind

[R] R - C programm. calling load() from within C code

2005-04-26 Thread javier garcia - CEBAS
Hi! This is the first time I'm trying to write a C program to be linked with R by my own and I've got one (main) problem 1) I've got a stack of big matrixes, so to manage them I' using save() in the preparation process to save workspace (they are about 1000 matrixes and each one occupies 4.2 M

[R] png device & videos

2005-03-17 Thread javier garcia
done it before here. Thanks and best regards, Javier -- A. Javier Garcia Water and Soil conservation department CEBAS-CSIC Campus Universitario Espinardo PO BOX 164 30100 Murcia (SPAIN) Phone: +34 968 39 62 57 Fax: +34 968 39 62 13 email: [EMAIL PROT

[R] Best device for printing quality

2004-09-23 Thread javier garcia - CEBAS
Hi all; Just to ask you for your advise about what is the best way to get the best quality for graphics to be incorporated into a printed article (I'm mainly a Linux useR, but also use the windows R version) Thanks and best regards, Javier G

[R] changing default labels of axis in ts plots

2004-09-01 Thread javier garcia - CEBAS
Hi; I'm in Spain and my locale and tz are the spanish one, and I'm using plot() with irregular time series. And I would like to change the default labels in x and y axis: 1) The labels of months in the x axis of the plots appear in Spanish - c("Enero,"Febrero",...) - and I would like them to a

RE: [R] Fwd: strptime() problem? - Resolved

2004-08-22 Thread javier garcia - CEBAS
9:2046],tz="GMT",usetz=TRUE) [1] "2000-03-25 22:00:00 GMT" "2000-03-25 23:00:00 GMT" [3] "2000-03-26 00:00:00 GMT" "2000-03-26 01:00:00 GMT" [5] "2000-03-26 02:00:00 GMT" "2000-03-26 03:00:00 GMT" [7] "2000-03-26 0

[R] Fwd: strptime() problem?

2004-08-17 Thread javier garcia - CEBAS
Hi all; I've already send a similar e-mail to the list and Prof. Brian Ripley answered me but my doubts remain unresolved. Thanks for the clarification, but perhaps I wasn't clear enough in posting my questions. I've got a postgres database which I read into R. The first column is Timestamp with

[R] strptime() bug? And additional problem in package "tseries"

2004-08-17 Thread javier garcia - CEBAS
Hi all, I've got some problems with irts objects, one of which could be a bug: 1) Read a table with several columns from Postgres and the first column is Timestamp with timezone (this is OK). An extract is: raincida$ts: [2039] "25/03/2000 22:00:00 UTC" "25/03/2000 23:00:00 UTC" [2041] "26/03/2

[R] error using daisy() in library(cluster). Bug?

2004-08-12 Thread javier garcia - CEBAS
Hi, I'm using the cluster library to examine multivariate data. The data come from a connection to a postgres database, and I did a short R script to do the analisys. With the cluster version included in R1.8.0, daisy worked well for my data, but now, when I call daisy, I obtain the following me

[R] Fwd: plot - labels in axis doubt, Resolved

2004-06-22 Thread javier garcia - CEBAS
axis doubt Date: Tue, 22 Jun 2004 11:08:17 +0200 From: javier garcia - CEBAS <[EMAIL PROTECTED]> To: R-Help <[EMAIL PROTECTED]> Hi all; I need to add lines to a plot and an additional axis in the right side with a specific scale for this second serie of data. I've seen once this b

[R] plot - labels in axis doubt

2004-06-22 Thread javier garcia - CEBAS
Hi all; I need to add lines to a plot and an additional axis in the right side with a specific scale for this second serie of data. I've seen once this but I can't find it now nor can manage to do it. The tickmarks can ve the same that the default left axis, but how could I indicate the labels?

Re: [R] identify() - image()

2004-05-27 Thread javier garcia - CEBAS
Thanks Barry (and Thomas), I wanted it to extract information from imported maps from the GIS GRASS, with a few modifications the functions works also very well for this. Best regards, Javier --- El Mié 26 May 2004 19:40, Barry Rowlingson escribió: > javier garcia - CEBAS wrote: >

[R] identify() - image()

2004-05-26 Thread javier garcia - CEBAS
Hi all; Just to ask if you know about any available function in R to identify points in a image plotted in X11. Something like the function identify(), but able to extract (x,y,value) groups from the image. Thanks and best regards, Javier __ [EMAIL P

[R] integrate over a serie

2004-05-14 Thread javier garcia - CEBAS
Hi all; I've got temporal series of data. And I'm plotting it with the type 'l', and with a interpolating slipe. Could you advise me about the best way to calculate the area under any of these curves. I know it is very easy to calculate the first one, although have no idea of the second on

[R] formated output

2004-03-21 Thread javier garcia - CEBAS
Hi all; I need to create ASCII files as output from R and I'm using sink(), cat(), and paste() for this. My problem is that the ASCII files hace several columns, and I would like to know if intermediate columns (the second one for example) could be alineated to the right. My values are integer r

[R] precision in operations

2003-11-07 Thread javier garcia - CEBAS
Hi all; could you remind me what is the function to change the precision of the operations done in R? I can't remember nor find it. Best regards Javier __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] output in a list

2003-10-22 Thread javier garcia - CEBAS
Hello. I've got a very short question. I've got a vector with about 800 numbers; and I would like to put them in a file, but I need them to be written just one value in each row. Is this possible? Best regards Javier __ [EMAIL PROTECTED] mailing l

[R] three short questions

2003-07-11 Thread javier garcia - CEBAS
Hi all; This is my first message to the list, and I've got three "basic" questions: How could I insert comments in a file with commands to be used as source in R? Is it possible to quickly display a window with all the colors available in colors()? How? I'm displaying points, but they overlap,