Displaying 20 results from an estimated 46 matches for "ptit_bleu".
2008 Aug 01
1
Best way to select good points in a noisy signal ?
Hello,
When I plot y=f(x) from the file xy.txt (
http://www.nabble.com/file/p18773387/xy.txt xy.txt ), I can clearly see a
trend.
Is there a function or a package able to take the median value of y for an
interval of x (x +/- a defined value) to plot nice graph (at least a better
one) ?
Thanks in advance,
Have a nice week-end,
Ptit Bleu.
--
View this message in context:
2007 Sep 17
4
Must be easy, but haven't found the function (numerical integration)
Hi,
I have a data frame of 2 columns with the following types :
data$day char
data$value num
And I plot my data with :
plot(strptime(donnees$day,format="%Y-%m-%d %H:%M:%S"),donnees$value,
type="l")
And I'd just like to get the numerical value of the integration of this
graph.
I looked at ?integrate but, as far as I understood (that is, not very much,
due to my poor
2007 Dec 10
7
Sweave : change value in rnw file to generate multiple "single" reports ?
Hello,
I'm still trying to make the life of my colleagues easier. Nice, isn't it ?
At the moment, I'm looking for a way to generate multiple "single report".
In fact I have a .rnw file which send a query to a MySQL database
(rs<-dbSendQuery(con, statement="select * from treatdata where
name='Device1'")
But of course my colleagues have many devices and
2007 Aug 31
2
Problem of vocabulary : retrieve element of a list of a list
Hi,
I read the posts for 2 hours and ?list and tried many comninations but I
haven't found the answer to this basic question. So I decided to post my
question even if it is a silly one ...
What is the instruction to retrieve, for example, the "D" of the first list
?
Thanks in advance,
Ptit Bleu.
> x<-list(LETTERS[1:5], LETTERS[10:20])
> x
[[1]]
[1] "A"
2009 Jun 05
2
find a sequence of characters in a vector
Hello,
I'm just looking for an easy way to find the positions of a complete
sequence in a bigger vector.
For example :
c("a","z","e") in c("a","z","e","r","t","a","z","a","z","e","c")
and the result should be
1 8
that is the positions of the beginning of
2009 Jan 12
1
Problem between panel.abline and log scales (lattice)
Hello and Happy New Year to all R-Users !!!
I would like to plot a lattice graph with a logarthmic y axis and add two
reference lines that is :
ref<-c(0.0070, 0.0096)
graph1<-xyplot(data$y1 ~ as.numeric(strptime(data$x1, format="%Y-%m-%d
%H:%M:%S")) | as.character(data$Code),
list(y = list(log = T)),
xlab="X'", ylab="Y",
panel = function(...) {
2007 Aug 29
1
Strage result with an append/strptime combination
Hi,
I keep on trying to write some small scripts in order to learn R but even
with basic scripts I have problems ...
I start with the name of a file which is in fact the time the file has been
generated (I cannot change the format). Then I convert namefile with
strptime. The problem occurs when I add another time from another file with
append. It displays some informations I don't want.
I
2009 Mar 13
1
How to combine xtable and minipage with Sweave ?
Hello,
I'm trying to put a dynamic table and a dynamic graph side by side in a pdf
document using Sweave.
The data.frame used to generate the table is called rg (rg.txt):
"Date"; "Code"; "Data1"; "Data2"
"2009-03-10";"1";1958;147
"2009-03-10";"2";302;144
"2009-03-10";"3";4;141
2008 Nov 07
1
sapply and median, possible or not ?
Hello,
I have a list of data.frame
rowsplit : List of 15
$ (0,0.025] :'data.frame': 169 obs. of 7 variables:
$ (0.025,0.05]:'data.frame': 174 obs. of 7 variables:
$ (0.05,0.075]:'data.frame': 92 obs. of 7 variables:
$ (0.075,0.1] :'data.frame': 76 obs. of 7 variables:
$ (0.1,0.125] :'data.frame': 37 obs. of 7 variables:
$
2007 Nov 20
2
Friendly way to link R - MySQL and non-(R and Mysql) users ?
Thanks to your help, I managed to link R and a Mysql Database, send queries,
plot the results and put everything in a pdf document (with Sweave).
My co-workers find the job not bad but they would like to have a friendly
interface to send queries and see the graphs (the pdf document is not
necessary).
Something like this coul be a good starting point :
---------------------------------------
|
2007 Dec 17
2
Must be obvious but not to me : problem with regular expression
Hi,
I have a vector called nfichiers of 138 names of file whose extension is .P0
or P1 ... to P8.
The script is not the same when the extension is P0 or P(1 to 8).
Examples of file names :
[128] "Output0.P0"
[129] "Output0.P1"
[130] "Output0.P2"
[131] "Output01102007.P0"
[132] "Output01102007.P1"
[133]
2011 Feb 09
5
Problem with long number (from character to numeric class)
Hello,
I have a text file with one column containing long number but stored as
string.
I download the file with read.table (and colClass) and the first row of this
column is :
"095842087016731010"
As I need to make some calculations with these numbers, I tried to convert
them using as.numeric.
But then I get
as.numeric("095842087016731010")
95842087016731008
I understand
2008 Jul 17
1
Newbie's question about lm
Hello,
I would like to fit data with the following formula :
y=V*(1+alpha*(x-25))
where y and x are my data, V is a constant and alpha is the slope I'm
looking for.
How to translate this into R-language ?
At the moment, I only know : lm(y ~ x)
Sorry for such a basic question. I thought I could find the solution in a
post but I have to confess that, up to know, I'm not able to understand
2011 Nov 10
1
newbie's question : xyplot legend with a white background
Hello,
Sorry in advance for adding a silly question on this forum but I haven't
found the right keywords to find a solution to this basic problem.
I'm just looking a way to have a white background behind the legend to hide
the grid.
Thanks in advance.
The silly example for my silly question:
xyplot(1~1,
panel = function(x,y, ...) {
panel.xyplot(x,y)
2008 Jul 01
2
how to automatically maximize the graph window (under XP) ?
Hello,
I'm trying to produce graphs automatically from data stored in database.
Before saving the graphs, I would like to maximize the size of the graphs.
The best would be to directly open maximized windows with x11() but up to
now I failed doing it.
I tried different widths and heighs but I never managed to obtain a full
screen window.
Is there a command to do it ?
Thanks in advance,
Ptit
2012 Jun 13
2
add horizontal reference lines in lattice bwplot
I'm plotting a lattice bwplot from a data.frame and would like to add some horizontal lines indicating some reference values (preferably with text annotation) as well as a grid of regular log tics. The following illustrates the plot:
data(ToothGrowth)
require("lattice")
p = bwplot(exp(len) ~ supp, ToothGrowth,
panel = function(..., box.ratio) {
panel.grid(h=-1,
2012 Jun 28
1
add constraints to nls or use another function
Hello,
I'm trying to fit experimental data with a model and nls.
For some experiments, I have data with x from 0 to 1.2 and the fit is quite
good.
But it can happen that I have data only the [0,0.8] range (see the example
below) and, then, the fit is not correct.
I would like to add a constraint, for example : the second derivative must
be positive.
But I don't know how to add this to
2009 Mar 27
1
Re sults sometimes in seconds with difftime unit=mins
Hello,
I'm trying to calculate an integration and x-axis is a time (format :
%Y-%m-%d %H:%M:%S").
I use diff(date, units="mins") in a loop for but sometimes the results stay
in seconds (95% is ok).
Examples for 2 sets of data are given below (first result stays in seconds
whereas the second in minutes as expected).
Have you already seen this behaviour ?
Any idea to solve this
2008 Feb 18
2
how to plot image() without painting a map (the background)
Hello,
I'm trying to plot dayly evolution of the temperature over France from
Global Forecast System files ("I'm trying" is the right expression...).
akilonlat03 is the temperature for different latitudes and longitudes ? 3
o'clock.
akilonlat06 is the temperature for different latitudes and longitudes ? 6
o'clock.
I would like to plot akilonlat03 and then akilonlat06
2007 Nov 06
1
How to find the zero (only the real solution) with the package polynom ?
Hello,
I have 3 columns : a, b and a*b
I would like to find the pair (a,b) so that a*b is the minimum but not from
the points I measured but from the fit of the curve (I have more points that
the ones given below but I fit only on this part because I
know that the minimum a*b is in this interval).
I thought doing it this way :
- to fit a*b=f(a)
abfit<-lm(ab ~ poly(a,8,raw=T))
- to use the