[R] how to change the color of the regression line when using effect function

2014-01-12 Thread karine heerah
Hi all,
Do you know how to change the color of the regression line, confidence interval 
etc. when plotting the effect function:
plot(effect(explanatory varible, model.name),xlab,ylab)
I tried to include the col argument of the plot function but it didn't work.
Thanks,Karine 
[[alternative HTML version deleted]]

__
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] how to change the color of the regression line when using effect function

2014-01-12 Thread karine heerah





Hi all,
Do you know how to change the color of the regression line, confidence interval 
etc. when plotting the effect function:
library(effects)
plot(effect(explanatory variable, model.name),xlab,ylab)
I tried to include the col argument of the plot function but it didn't work.
Thanks,Karine   
  
[[alternative HTML version deleted]]

__
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.


[R] (no subject)

2013-01-04 Thread Karine HEERAH

Hi,

I am using the nls function and it stops because the number of iterations
exceeded 50, but i used the nls.control argument to allow for 500
iterations. Do you have any idea why it's not working?

fm1 - nls(npe ~ SSgompertz(npo, Asym, b2, b3),
data=f,control=nls.control(maxiter=500))

Error in nls(y ~ exp(-b2 * b3^x), data = xy, algorithm = plinear, start =
c(b2 = pars[[b1]],  :
  number of iterations exceeded maximum of 50

Thanks for your help,
Cheers,
Karine.

__
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.


[R] nls problem with iterations

2013-01-03 Thread Karine HEERAH

Hi,

I am using the nls function and it stops because the number of 
iterations exceeded 50, but i used the nls.control argument to allow for 
500 iterations. Do you have any idea why it's not working?


fm1 - nls(npe ~ SSgompertz(npo, Asym, b2, b3), 
data=f,control=nls.control(maxiter=500))



Thanks for your help,
Cheers,
Karine.

__
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.


[R] plot dates

2010-04-26 Thread karine heerah

hi everybody,

 

How can you plot some dates? I mean how can i have the tickmarks with the label 
of each date on my x axis?

 

The dates i use are in POSIXct format, i don't know if it matters.

 

thanks a lot

Karine 


  
_
Consultez vos emails Orange, Gmail, Yahoo!, Free ... directement depuis HOTMAIL 
!

[[alternative HTML version deleted]]

__
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.


[R] cluster analysis :: urgent

2010-04-11 Thread karine heerah

hi,

 

how can i do cluster analysis on spatial data? (longitude  latitude)

 

Because i used the function clust of the clustTool package and it did'nt work 
at all:

 

cl - clust(dv,3,method=hclustAverage,distMethod=euclidean)

 

thanks a lot



Karine HEERAH
 
Master 2 , océanographie et environnements marins
Université Pierre et Marie Curie (Paris 6)




  
_
Consultez gratuitement vos emails Orange, Gmail, Free, ... directement dans 
HOTMAIL !

[[alternative HTML version deleted]]

__
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.


[R] kriging problem - very urgent

2010-04-07 Thread karine heerah

Hi everybody,

 

I have a longitude vector and a latitude one. Associated to these coordinates, 
i have a matrix with some data at some coordinates but not all.

 

Lon - seq(136.025,144.975,0.05)
Lat - rev(seq(-66.975,-65.525,0.05))

 

dim(z) - c(Lon,Lat)

 

And i have tried to apply to these data a kriging function. But first i need to 
reshape these 3 variables to have a dataframe with these and with the 
corresponding z values with the good coordinates. Do you know how i can do that?

 

And i will have the same problem with the object that return the krige function 
(gstat package). It gives me a dataframe, and i want a matrix for the 
prediction. How can i do that, in order to plot it with the image function 
after.

 

Thanks a lot

Karine HEERAH
 
Master 2 , océanographie et environnements marins
Université Pierre et Marie Curie (Paris 6)
42 rue Salvador Allende 
92000 Nanterre
06.61.50.97.47




  
_
[[elided Hotmail spam]]
tre téléphone!

[[alternative HTML version deleted]]

__
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.


[R] add sd to a plot

2010-03-29 Thread karine heerah

Hi,

 

I would like to add sd bar to an existing plot. How can i do that?

 

For example:

 

library(MASS)

 

x - rnorm(100)

mean - mean(x)

sd - sd(x)

plot(mean)

## How can i add the sd bar around the mean point?

 

 

thanks a lot

Karine HEERAH
 
Master 2 , océanographie et environnements marins
Université Pierre et Marie Curie (Paris 6)
42 rue Salvador Allende 
92000 Nanterre
06.61.50.97.47




  
_
[[elided Hotmail spam]]

[[alternative HTML version deleted]]

__
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.


[R] 2 dimensional interpolation from matlab to R

2010-02-04 Thread karine heerah

Hi everybody.

 

i have 2 datasets : one with a long grid a lat grid and a bathymetry grid

the second one only has the long and lat coordinates.

So i want to know the bathymetry associated to the second dataset. I thought it 
was a good idea to do an interpolation between the two datasets. I find a 
script doing that on matlab but i want to do it on R. Do you how to do it?

 

for ii = 1:length(seal_dive_depth07)

seal_bathy_depth07(ii) = interp2(long,latg,A,seal_lon07(ii),seal_lat07(ii));
end



Karine HEERAH
 
Master 2 mention océanographie et environnements marins, parcours océanique
 
42 rue Salvador Allende 
92000 Nanterre
06.61.50.97.47



  
_



[[alternative HTML version deleted]]

__
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.


[R] contour function: changing colour according to different levels

2010-02-03 Thread karine heerah

Hi everybody,

 

I am using the contour function to draw isobares. And i would like to to bold 
contours for an interval of 500m and weak contour for an interval of 100m.

Can someone help me with this?

 

Thanks a lot 

Karine




  
_
[[elided Hotmail spam]]

[[alternative HTML version deleted]]

__
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.


[R] to convert a character string in time

2010-02-03 Thread karine heerah

hi,

 

I have my data time expressed in character string exple 5:20 (hour:min) and i 
want to convert these in times recognized by R. I have tried the POSIXct 
function:

 

balise07$Hour - as.POSXIct(balise07$Hour)

 

but it didn't work.

Do you know why? Do you know how i can convert my string character in a real 
time?

 

Thanks

Karine HEERAH
 
Master 2 mention océanographie et environnements marins, parcours océanique
 
42 rue Salvador Allende 
92000 Nanterre
06.61.50.97.47



  
_


[[alternative HTML version deleted]]

__
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.


[R] FW: to convert a character string in time

2010-02-03 Thread karine heerah


 hi,
 
 
 
 I have my data time expressed in character string exple 5:20 (hour:min) and 
 i want to convert these in times recognized by R. I have tried the POSIXct 
 function:
 
 
 
 balise07$Hour - as.POSIXct(balise07$Hour)
 
 
 
 but it didn't work.
 
 Do you know why? Do you know how i can convert my string character in a real 
 time?
 
 
 
 Thanks
 
 Karine HEERAH
 
 Master 2 mention océanographie et environnements marins, parcours océanique
 
 42 rue Salvador Allende 
 92000 Nanterre
 06.61.50.97.47
 
 
 
 
 _
 
 
 [[alternative HTML version deleted]]
 

  
_



[[alternative HTML version deleted]]

__
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.


[R] make a grid with longitude, latitude and bathymetry data

2010-02-03 Thread karine heerah



hi,

i have a longitude vector (x) a latitude vector (y) and a matrix of bathymetry 
(z) with the dimensions (x,y). I have already succeeded in plotting it with the 
image.plot (package 'field') and the contour functions.

But now, I want to make a grid in order to extract easily the bathymetry 
corresponding to a couple of longitude, latitude coordinates. 

Do you know a function or a package which can help me? Or do you know how to do 
it? (because i have already looked for it on the internet and i didn't find 
anything)

Thanks a lot.

Karine






Faites une bonne action avec Bing Solidaire ! C'est ici !   
  
_



[[alternative HTML version deleted]]

__
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.


[R] hdf files

2010-02-03 Thread karine heerah

hello,
 
I have a problem to open an hdf file. i have downloaded the package 'hdf5' as 
it was advised on R seek. But when i try to load the file, the R console sends 
me an eror message:
 
setwd(C:/Documents and Settings/Karine/Bureau/data/)
#install.packages('hdf5')
library(hdf5)
 sea_ice - hdf5load(asi-s6250-20090704-v5i.hdf, load = TRUE, verbosity = 3, 
tidy = FALSE)
 Grid_ice - hdf5load(LongitudeLatitudeGrid-s6250-Antarctic.hdf, load = TRUE, 
verbosity = 3, tidy = FALSE)
 
  sea_ice - hdf5load(asi-s6250-20090704-v5i.hdf, load = TRUE, verbosity = 
 3, tidy = FALSE)
hdf5_global_verbosity=3 load=1
Erreur dans hdf5load(asi-s6250-20090704-v5i.hdf, load = TRUE, verbosity = 3,  
: 
  unable to open HDF file: asi-s6250-20090704-v5i.hdf
  Grid_ice - hdf5load(LongitudeLatitudeGrid-s6250-Antarctic.hdf, load = 
 TRUE, verbosity = 3, tidy = FALSE)
hdf5_global_verbosity=3 load=1
Erreur dans hdf5load(LongitudeLatitudeGrid-s6250-Antarctic.hdf, load = TRUE,  
: 
  unable to open HDF file: LongitudeLatitudeGrid-s6250-Antarctic.hdf

Thanks a lot,

Karine HEERAH
 
Master 2 mention océanographie et environnements marins, parcours océanique
 
42 rue Salvador Allende 
92000 Nanterre
06.61.50.97.47






Faites une bonne action avec Bing Solidaire ! C'est ici ! 


Discute avec tes amis partout, grâce à Messenger sur ton mobile. Cliquez ici !
  
_


[[alternative HTML version deleted]]

__
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.


[R] make a grid with longitude, latitude and bathymetry data

2010-01-28 Thread karine heerah

hi,

i have a longitude vector (x) a latitude vector (y) and a matrix of bathymetry 
(z) with the dimensions (x,y). I have already succeeded in plotting it with the 
image.plot (package 'field') and the contour functions.

But now, I want to make a grid in order to extract easily the bathymetry 
corresponding to a couple of longitude, latitude coordinates. 

Do you know a function or a package which can help me? Or do you know how to do 
it? (because i have already looked for it on the internet and i didn't find 
anything)

Thanks a lot.

Karine



  
_



[[alternative HTML version deleted]]

__
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.


[R] hdf files

2010-01-27 Thread karine heerah

hello,
 
I have a problem to open an hdf file. i have downloaded the package 'hdf5' as 
it was advised on R seek. But when i try to load the file, the R console sends 
me an eror message:
 
setwd(C:/Documents and Settings/Karine/Bureau/data/)
#install.packages('hdf5')
library(hdf5)
 sea_ice - hdf5load(asi-s6250-20090704-v5i.hdf, load = TRUE, verbosity = 3, 
tidy = FALSE)
 Grid_ice - hdf5load(LongitudeLatitudeGrid-s6250-Antarctic.hdf, load = TRUE, 
verbosity = 3, tidy = FALSE)
 
  sea_ice - hdf5load(asi-s6250-20090704-v5i.hdf, load = TRUE, verbosity = 
 3, tidy = FALSE)
hdf5_global_verbosity=3 load=1
Erreur dans hdf5load(asi-s6250-20090704-v5i.hdf, load = TRUE, verbosity = 3,  
: 
  unable to open HDF file: asi-s6250-20090704-v5i.hdf
  Grid_ice - hdf5load(LongitudeLatitudeGrid-s6250-Antarctic.hdf, load = 
 TRUE, verbosity = 3, tidy = FALSE)
hdf5_global_verbosity=3 load=1
Erreur dans hdf5load(LongitudeLatitudeGrid-s6250-Antarctic.hdf, load = TRUE,  
: 
  unable to open HDF file: LongitudeLatitudeGrid-s6250-Antarctic.hdf

Thanks a lot,

Karine HEERAH
 
Master 2 mention océanographie et environnements marins, parcours océanique
 
42 rue Salvador Allende 
92000 Nanterre
06.61.50.97.47






Faites une bonne action avec Bing Solidaire ! C'est ici !   
  
_


[[alternative HTML version deleted]]

__
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.


[R] hdf files

2010-01-26 Thread karine heerah

hello,

 

I have a problem to open an hdf file. i have downloaded the package 'hdf5' as 
it was advised on R seek. But when i try to load the file, the R console sends 
me an eror message:

 

setwd(C:/Documents and Settings/Karine/Bureau/data/)

#install.packages('hdf5')
library(hdf5)
 sea_ice - hdf5load(asi-s6250-20090704-v5i.hdf, load = TRUE, verbosity = 3, 
tidy = FALSE)
 Grid_ice - hdf5load(LongitudeLatitudeGrid-s6250-Antarctic.hdf, load = TRUE, 
verbosity = 3, tidy = FALSE)

 

  sea_ice - hdf5load(asi-s6250-20090704-v5i.hdf, load = TRUE, verbosity = 
 3, tidy = FALSE)
hdf5_global_verbosity=3 load=1
Erreur dans hdf5load(asi-s6250-20090704-v5i.hdf, load = TRUE, verbosity = 3,  
: 
  unable to open HDF file: asi-s6250-20090704-v5i.hdf
  Grid_ice - hdf5load(LongitudeLatitudeGrid-s6250-Antarctic.hdf, load = 
 TRUE, verbosity = 3, tidy = FALSE)
hdf5_global_verbosity=3 load=1
Erreur dans hdf5load(LongitudeLatitudeGrid-s6250-Antarctic.hdf, load = TRUE,  
: 
  unable to open HDF file: LongitudeLatitudeGrid-s6250-Antarctic.hdf


Thanks a lot,


Karine HEERAH
 
Master 2 mention océanographie et environnements marins, parcours océanique
 
42 rue Salvador Allende 
92000 Nanterre
06.61.50.97.47



  
_



[[alternative HTML version deleted]]

__
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.