Re: [R] Not colour but symbols

2012-03-22 Thread Komine
Thank Petr for your help. It do what I wanted also. -- View this message in context: http://r.789695.n4.nabble.com/Not-colour-but-symbols-tp4490030p4495046.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing li

Re: [R] To overlay my raster and its boundary

2012-03-22 Thread Komine
Hi, Thank Michael, I resolved my problem with your help. the projections of the layers were the same. Ok for reading the posting guide and . R sig geo list. -- View this message in context: http://r.789695.n4.nabble.com/To-overlay-my-raster-and-its-boundary-tp4493705p4494900.html Sent from

[R] To overlay my raster and its boundary

2012-03-21 Thread Komine
Hi I want to overlay my raster and its boundary which is a shapefile. When I used thise code separately, all is ok: # Open raster >Image<-read.table("C:\\Users\\Documents\\Nouveau\\Frequence.txt",sep="",dec=",",header=TRUE) > >testo<-rasterFromXYZ(Image) >plot(testo) >testo2 <- aggregate

Re: [R] Not colour but symbols

2012-03-21 Thread Komine
Hi Thank you Bert and Thomas for your help, I did what I wanted with this code. >test<-c(4,8,9,6,7) >barplot(test,density =20,angle=45) But I want to cross the lines in each bar. Please, how to do it? Thank you in advance. -- View this message in context: http://r.789695.n4.nabble.com/Not-colo

[R] Not colour but symbols

2012-03-20 Thread Komine
Hi, Instead to put colour in my histogram, I want to put symbols like lines, dots etc. Do you know the function that does it? Thank you in advance -- View this message in context: http://r.789695.n4.nabble.com/Not-colour-but-symbols-tp4490030p4490030.html Sent from the R help mailing list archi

[R] Re : Polygon

2011-12-20 Thread Komine
inverse(Barerror$Mois),Barerror$Mois[1]),y=c(Barerror$MoyArea+Barerror$SdArea,inverse(Barerror$MoyArea-Barerror$SdArea),Barerror$MoyArea[1]+Barerror$SdArea[1]),col="gray",border=NA) lines(Barerror$MoyArea~Barerror$Mois,lwd=2)    Thanks Komine   De : J

Re: [R] Label in oblique orientation

2011-12-19 Thread Komine
Hi, Thank you David, I resolved the problem with ?text. Komine -- View this message in context: http://r.789695.n4.nabble.com/Label-in-oblique-orientation-tp4211944p4213465.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

Re: [R] Label in oblique orientation

2011-12-18 Thread Komine
Dear, Thank bbolker for your answer, but with las I do not see oblique orientation for labels. There are horizontal, vertical but not oblique orientation. Thank for others answers. -- View this message in context: http://r.789695.n4.nabble.com/Label-in-oblique-orientation-tp4211944p4212321.htm

[R] Label in oblique orientation

2011-12-18 Thread Komine
Hi, I drew a barplot with this code: > BarSize<-barplot(Size$SumArea,names.arg=Size$Class) However the name of each bar is long. Thus, some names do not appear. I want to write labels with Oblique orientation. Can you help me to do that? Thank you in advance. -- View this message in context:

[R] Re : Polygon

2011-12-13 Thread Komine
(small) reproducible example of your data. The statement "...output does not seem good."  is not very useful. Please explain what you would like the polygon area to look like, and why you don't like the way it came out.  Links to posted images of the chart would help too.

[R] Polygon

2011-12-12 Thread Komine
Hi everybody, I have a matrix with 3 columns (Date, MeanArea and SdArea). I want to draw a figure showing the variable MeanArea in terms of the Date. But instead to use the variable SdArea as bar error, I want to use “polygon error”. I use this code but the output does not seem good. Polyhttp://r.

Re: [R] Problem with loop

2011-12-03 Thread Komine
Hi, Thank Michael for your help. Komine -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-loop-tp4148083p4154147.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

[R] Problem with loop

2011-12-02 Thread Komine
Hi, I try to build a loop difficultly. I have in a folder called Matrices several files (.csv) called Mat2002273, Mat2002274 to Mat2002361. I want to calculate for each file the mean of the column called Pixelvalues. I try this code but as result, I have this message: Mat2002273 not found >

Re: [R] Problem with legend

2011-09-20 Thread Komine
Thank you Sarah and Petit bleu for your help. I solved my problem with the code of Sarah. Komine -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-legend-tp3826973p3827461.html Sent from the R help mailing list archive at Nabble.com

[R] Problem with legend

2011-09-20 Thread Komine
HI, This code is part of a code I used to do a linear regression: >points(var1~var2,data=Regress,pch=21,bg="grey") >reg11<-lm(var1~var2,data=Regress) >abline(lm(var1~var2,data=Regress),lty=2,lwd=2,col="grey") >legend("topleft",legend= >c("NDII from composite", >"y= 0.0007x - 0.1156",expression(p

Re: [R] Save figure in pdf

2011-08-26 Thread Komine
Thank you for your answers. The problem persists always (without ".pdf" or using "print" or "plot"). The code runs, but the probem is to save the figure with pdf format in order to load it directly in word. Howerver, I will read the link indicated. -- View this message in context: http://r.789

[R] Save figure in pdf

2011-08-26 Thread Komine
Hi, I created a figure with R and I want to save it in .pdf. I used this code: > pdf("res.pca.pdf",width=10,height=8) > library(FactoMineR) > res.pca<-PCA(acp) > res.pca > dev.off() When I go in my folder, I find an empty file ( 0 Ko). Do you know where is the problem. Thank you in advance

Re: [R] Different Estimated values between R and Excel

2011-08-23 Thread Komine
Thanks, I see the problem. R did the opposite of Excel. I invert the position of variables in my code and the result is now correct. -- View this message in context: http://r.789695.n4.nabble.com/Different-Estimated-values-between-R-and-Excel-tp3762508p3762870.html Sent from the R help mailing

[R] Different Estimated values between R and Excel

2011-08-23 Thread Komine
Hi, I used simple linear regression with the R software and EXCEL on the same data. Although , I find the same R2=0.84, I find different estimated values (intercept and slope). For the R software (slope =0.0009, Intercept = -0.1478), for EXCEL (slope =927.7, Intercept = 154,41). When I use the e

Re: [R] exponential model with decreasing

2011-08-17 Thread Komine
Thank you bbolker for your help and advice about guide. Komine -- View this message in context: http://r.789695.n4.nabble.com/exponential-model-with-decreasing-tp3747572p3749933.html Sent from the R help mailing list archive at Nabble.com. __ R

[R] exponential model with decreasing

2011-08-16 Thread Komine
What I can do to obtain R^2? - The way to verify Homoscedasticity and normality is the same for linear model? Thank you in advance KOMINE -- View this message in context: http://r.789695.n4.nabble.com/exponential-model-with-decreasing-tp3747572p3747572.html Sent fr

[R] exponential with decreasing

2011-08-16 Thread Komine
where is the problem? - What I can do to obtain R^2? - Is the method to verify homoscedasticity and normality is the same for linear model? Thank you in advance KOMINE -- View this message in context: http://r.789695.n4.nabble.com/exponential-with-decreasing-tp3747441p3747441.html Se

[R] fraction [a] a partitioning of variation

2011-07-07 Thread Komine
Hi, After performing a multiple linear regression, I am looking for an R package that can calculate the fraction [a] a partitioning of variation. This fraction measures the proportion of variance of y explained by the explanatory variable x1 (for example) when other variables (x2, x3 ...) are hel

[R] Problem with varpart (vegan library)

2011-07-07 Thread Komine
fraction of each variable must be equal to 1. Thanks for your help. Komine -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-varpart-vegan-library-tp3650816p3650816.html Sent from the R help mailing list archive at Nabble.com

[R] Problem with GAM

2011-05-30 Thread Komine
to invert the color to obtain red color corresponding with the big values. Thanks for your help. Komine -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-GAM-tp3561371p3561371.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] Draw a nomogram after glm

2011-05-10 Thread Komine
1218/nomogram_2.jpeg Please can I do to have linear predictor between 0 to 1. Thanks very much for your Help Komine -- View this message in context: http://r.789695.n4.nabble.com/Draw-a-nomogram-after-glm-tp3498144p3511218.html Sent from the R he

Re: [R] Draw a nomogram after glm

2011-05-06 Thread Komine
nomogram. Thanks again Komine -- View this message in context: http://r.789695.n4.nabble.com/Draw-a-nomogram-after-glm-tp3498144p3504208.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.c

Re: [R] Draw a nomogram after glm

2011-05-06 Thread Komine
er to understand. http://r.789695.n4.nabble.com/file/n3503828/nogramme.bmp Nb: I Apologize for my bad english Thanks for your help Komine PhD student Dakar _Sénégal West Africa Komine wrote: > > Hi all R users > I did a logistic regression with my binary variable Y (0/1) and 2 >

Re: [R] Draw a nomogram after glm

2011-05-06 Thread Komine
) plot(Predict(f,L=200:800,P=3)) Unfortunately, I have error after the 2nd code: Erreur dans datadist(f, data = donnee) : program logic error Please could you provide me a document more simple which is more understandable for new R user. Thanks for your help. Komine -- View this mes

Re: [R] Draw a nomogram after glm

2011-05-05 Thread Komine
Thanks Frank I will try rms package and give after the result. Komine -- View this message in context: http://r.789695.n4.nabble.com/Draw-a-nomogram-after-glm-tp3498144p3499771.html Sent from the R help mailing list archive at Nabble.com. __ R

[R] Draw a nomogram after glm

2011-05-05 Thread Komine
ld you help me on the code to draw nomogram. Nb: my English is low, I apologize. Thank for your help Komine -- View this message in context: http://r.789695.n4.nabble.com/Draw-a-nomogram-after-glm-tp3498144p3498144.html Sent from the R help mailing list archive at Nabble.com. ___