Re: [R] Four parameter logistics.

2011-02-08 Thread Victor F Seabra
try the code below, if you use different upper and lower limits you might get different parameter estimates HTH, Victor standard.curve<-data.frame(conc=c(50, 25, 12.5, 6.25, 3.125, 1.563, 0.781,50, 25, 12.5, 6.25, 3.125, 1.563, 0.781),absorb=c(1.918, 1.251, 1.104, 0.719, 0.403, 0.177, 0.083,1.9

Re: [R] manipulate dataframe

2011-02-06 Thread Victor F Seabra
another option is to use reshape() x<-data.frame(x1=rep(1:3,each=3),x2=letters[1:9]) x$id<-rep(1:3,3) dur<-reshape(x,timevar="x1",idvar="id",direction="wide") dur<-dur[,-1] colnames(dur) <- paste("d", unique(x$x1), sep="") dur cheers, Victor ___

Re: [R] Please, need help with a plot

2011-01-03 Thread Victor F Seabra
although the code somehow didn't work on my Vista / R 2.8, it did work perfectly on a XP machine / R 2.10 I've been trying to fix this for days, Thank you very much for your help! __ 02/01/2011 19:30, David Winsemius < dwinsem

Re: [R] using "plot" with time series object - "axes = FALSE" option does not appear to work

2011-01-03 Thread Victor F Seabra
I guess you should specify x and y variables: plot(x=PCECTPI$var1, y=PCECTPI$var2, axes = FALSE) __ 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-gui

[R] Please, need help with a plot

2011-01-02 Thread Victor F Seabra
Please, I wonder if someone knows how to add the less than or equal to symbol in the plot generated by the code below: var1<-c('age <= 3','age <= 7','age <= 10','age <= 11','age <= 20','age <= 25','age <= 30','age <= 45','age <= 50','age < 55','age >= 55') var2<-c(3.8,5.4,3.7,3.8,5.

Re: [R] problem with read.table

2011-01-01 Thread Victor F Seabra
_ Em 01/01/2011 20:05, Victor F Seabra < vsea...@uol.com.br > escreveu: Dear all, Please, when I use the command: table1<-read.table("table1.txt", header=TRUE, sep="\t") cells that contain \ u 2264 (corresponding to <= si

[R] problem with postscript command

2011-01-01 Thread Victor F Seabra
please, when i use the command postscript, the symbol "<="(less than or equal to) is replaced by "..." (ellipsis) how can I fix that? postscript("plot1.ps", width = 22, height = 11.5,pointsize=24,paper="special",bg="transparent") plot(NULL,xlim=c(1,10),ylim=c(1,10)) text(5,5,"

[R] problem with read.table

2011-01-01 Thread Victor F Seabra
Dear all, Please, when I use the command: table1<-read.table("table1.txt", header=TRUE, sep="\t") cells that contain \ u 2264 (corresponding to <= sign) get imported as \ \ u2264. which causes the need to manually edit each cell using the fix command. Is there a way to fix tha

Re: [R] Plot symbols: How to plot (and save) a graphic with symbols originating from a table

2011-01-01 Thread Victor F Seabra
Please, you need to read.table to R as my problems start there If you want you can download the txt file at the link below https://docs.google.com/leaf?id=0BweZgDxYn9BkNmY1NThmMDEtOWUxZS00MzE0LTk0NTQ tYzdlODMxODgxYzJh&hl=en thanks, Victor

Re: [R] Plot symbols: How to plot (and save) a graphic with symbols originating from a table

2011-01-01 Thread Victor F Seabra
lish what end? You have not described what you are trying to actually do. Is this text supposed to be plotted inside the plotting area or are you going to be using it as axis labels? There is a variety of approaches (especially the plotmath expression option) that can be used depending on the ultim

[R] Plot symbols: How to plot (and save) a graphic with symbols originating from a table

2011-01-01 Thread Victor F Seabra
Dear all, Please, I have a doubt regarding symbols plotting when the data originates from a table (i.e. is not manually fed into the "text" function) Please, see below: I have a tab delimited file called table1.txt with 4 columns. (I wasn't sure on how to attach the table to t

Re: [R] Plot symbols: How to plot (and save) a graphic symbols originating from a table

2011-01-01 Thread Victor F Seabra
"bill >= tony" "bill \u2265 tony" "9" "fish" "dude <= bro" "dude \u2264 bro" By the way, I'm running R on windows and didn't try any of this on Linux. thanks in advance, Victor   Victor Faria Sea

[R] Plot symbols: How to plot (and save) a graphic symbols originating from a table

2011-01-01 Thread Victor F Seabra
Dear all, Please, I have a doubt regarding symbol plotting with data originating from a table. Please, see below: I have a tab delimited file called table1.txt with 4 columns: yposanimal var1var2 5 cat gina <= lady gina \u2264 lady 7 dog bill >= tonybill \u