[R] Fw: space between bars of a group in ggplot2

2020-12-16 Thread azam jaafari via R-help
- Forwarded Message - From: PIKAL Petr To: azam jaafari Cc: r-help mailing list Sent: Wednesday, December 16, 2020, 3:39:06 PM GMT+3:30Subject: RE: [R] space between bars of a group in ggplot2 Hi, Keep your emails on the list, please. here are some artificial data dput(dat

[R] space between bars of a group in ggplot2

2020-12-14 Thread azam jaafari via R-help
Hello Dear I want to make a barplot for groups with three repetitions and same values. dataset is like this: groups:                  a                          b                        c value:           1.2, 1.2, 1.2     2.5, 2.5,2.5   Condition: sat, sat, sat,   

[R] neural network in R

2014-05-16 Thread azam jaafari
 Hello everybody   I try to fit a neural network on my data by using package 'neuralnet' or 'nnet'. I did it several times but I got an unexpected answer,   this is my code (num.obs=100): ( library('nnet') y<-data.frame(data$CU) (y is cu concentration) x<-data.frame(data$mrvbf,data$plcurvature

[R] scatter plot to contour plot

2014-02-24 Thread azam jaafari
Dear All I want to convert a scatter plot to a continuous contour plot. I have "x" as a variable and "y" as another variable. is there any package for this? can anybody halp me? Thanks Azam [[alternative HTML version deleted]] __ R-help@r-

[R] scatter plot to continuous plot

2014-02-24 Thread azam jaafari
Hello All I want to convert a scatter plot to a continuous contour plot. I have "x" as a variable and "y" as another variable. is there any package for this? can anybody halp me? Thanks On Sun, 2/23/14, r-help-requ...@r-project.org wrote: Sub

[R] Breaking news

2013-04-08 Thread azam jaafari
http://www.iolcus.gr/kfaiyjg/swwpuokfd [[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

[R] diversity map in r

2011-09-07 Thread azam jaafari
Hi   I want to make a grid map using diversity indices. I have a soil grid map with 7 class in r. how can I make a diversity map based on soil map in r?  I found something for calculation diversity in a table (.csv).   Thanks [[alternative HTML version deleted]] _

[R] How do I define moving window fequency

2011-09-06 Thread azam jaafari
Hi list   I want to define a moving window based on ferquency in a grid file. is there a package for this? I found packages for moving window mean, median or quantile.   thanks  [[alternative HTML version deleted]] __ R-help@r-project.org mail

Re: [R] convert to grid file

2011-09-01 Thread azam jaafari
n I do? I do not understand. What do you want to do with your data? Maybe you could consult spatial package or CRAN Task views. One option could be to make vectors of row and columns coordinates. But it depends on what you want to do with your data. Regards Petr > > Thanks > >

Re: [R] convert to grid file

2011-09-01 Thread azam jaafari
Thank you Petr   It work.   Now I have a matrix 970*960. If I want to convert to spatial grid (each pixel has x and y coordinate).  How can I do?    Thanks   From: Petr PIKAL To: azam jaafari Cc: R-help Sent: Thursday, September 1, 2011 8:59 AM Subject: Re: [R] convert to grid file Hi

[R] convert to grid file

2011-09-01 Thread azam jaafari
Hi   I computed probability in each cell. I have:    [99883,] -0.0062412957690  [99884,] -0.0062412957690  [99885,] -0.0062412957690  [99886,] -0.0062412957690  [99887,] -0.0062412957690  [99888,] -0.0062412957690  [99889,]  0.9909126638948  [99890,]  0.9909126638948  [99891,]  0.9909126638948  [99

[R] save grid

2011-09-01 Thread azam jaafari
Hi   I have a problem for saving grid file in R. I want to save a grid file as "tif".   I write this: writeGDAL(predict.grid, 'predict.tif')   after running, I don't recieve any error. But when I want to open the 'file.tif', it doesn't open. for example in paint program: I recieve this: Paint

[R] neuralnet

2011-08-22 Thread azam jaafari
Hi   I used neuralnet for predciton new covarites. Ir give me the predictions as matrix 1*, . I want to convert the predictions to grid map.   Please help me   Thank you so much [[alternative HTML version deleted]] __ R-help@r-project.org m

[R] Fw: grid

2011-05-06 Thread azam jaafari
  Dear All I trained a neural network for 200 data and I did prediction for a grid file (e.g. 100 points) such as below: snn<-predict(nn, newdata=data.frame(wetness=wetnessgrid$band1, ndvi=ndvigrid$band1)) the pixels of snn is same with wetnessgrid or ndvigrid  I want to convert thi

[R] replace NA

2011-05-06 Thread azam jaafari
Hello all   I have a geology map that has three level, bellow   <-geology lithology    landscape   landform     landform level is used as covariate (with codes=1,2,3,4,5) for training of neural network, but this level has missing data as NA. I want to replace the missing data of landform level wi

[R] grid

2011-05-02 Thread azam jaafari
Dear All   I trained a neural network for 200 data and I did prediction for a grid file (e.g. 100 points) such as below:   snn<-predict(nn, newdata=data.frame(wetness=wetnessgrid$band1, ndvi=ndvigrid$band1))   the pixels of snn is same with wetnessgrid or ndvigrid    I want to convert this f

[R] vector file

2011-05-01 Thread azam jaafari
Dear All   I want to import the vector file (   .shp) to R. I could import the file by rgdal package before, by following:   geology<-readOGR('C:/geology//saga/geo.geom','finalgeology')   but now there is an error:   Error in ogrInfo(dsn = dsn, layer = layer, input_field_name_encoding = input_fi

[R] multi-class for BRT

2010-09-09 Thread azam jaafari
Hi   I want to do boosted regression(classification) tree for categorical response (with 7 levels). Can I do this by GBM package?   please help me?   Thanks alot   [[alternative HTML version deleted]] __ R-help@r-project.org mailing li

[R] threshold in plot

2010-07-16 Thread azam jaafari
Hi   I want to draw a plot from observed and predicted data and also shows threshold and data before threshold are identified with different color from data after threshold.   Suppose: abserved data are 0 or 1 predicted data= 0 to 1 threshold=0.5   Thanks alot     [[alternative

[R] gbm function

2010-06-23 Thread azam jaafari
 Hello   I have questions about gbm package.  It seems we have to devide data to two part (training set and test set) for first.   1- trainig set for running of gbm function 2- test set for gbm.perf      is it rigth? I have 123 sample that I devided 100 for trainig and 23 for test.   So, paramet

[R] error in misclass results

2010-06-10 Thread azam jaafari
please help me   again I have a problem.   I want to do cross-validation for multinomial log. reg. I have a response variabe with 7 levels (Z((a,b,c,d,e,f,g)) and 4 predictor(1 classifier and 3 continuous). I did:   #data with 100 observations   > library('bootstrap')   >x<-matrix(c(data$H, data

[R] bootpred for multinomial

2010-06-09 Thread azam jaafari
S4 class to a vector   Is it incorrect?   Azam         --- On Wed, 6/9/10, Uwe Ligges wrote: From: Uwe Ligges Subject: Re: [R] bootpred for multinomial To: "azam jaafari" Cc: "R-help" Date: Wednesday, June 9, 2010, 5:46 AM On 09.06.2010 13:26, azam jaafari wr

[R] bootpred for multinomial

2010-06-09 Thread azam jaafari
I applied bootpred for multinomial logistic reg. (with nnet package). I used same as theta.fit and theta.predict of R for my data. but give me error. Can I do this with response vriable;7 levels predictor variables:5 (1 classifier, 4 continuous)?   Thanks alot Azam   [[alternativ

[R] cross-validation

2010-06-08 Thread azam jaafari
Hi   I want to do leave-one-out cross-validation for multinomial logistic regression in R. I did multinomial logistic reg. by package nnet in R. How I do validation? by which function? response variable has 7 levels   please help me   Thanks alot Azam [[alternative HTML version d

[R] multinomial

2010-06-04 Thread azam jaafari
Hi I carried out multinomial logistic reg. in R by package 'nnet'. response variable has 7 level and predictors (4 variable) are classifier and continuous. I want to present results as figur but I can't. also, I read R example but I have cell grid and I can't define data.frame. please help me

[R] increase memory

2010-06-03 Thread azam jaafari
Dear All   Pleas help me to increase the memory in R.   In order increase memory, I read the FAQ and follow the instruction as below     Close R, then right-click on your R program icon (the icon on your desktop or in your programs directory). Select ``Properties'', and then select the ``Sho

[R] leave-one-out cross validation

2010-05-28 Thread azam jaafari
1854140036 -1783225921 1484611221 1365746860 -346485118 [31] 1206044253 1201793367 956757054 350214264 -1324711077 . . . please help me Thanks alot --- On Wed, 5/26/10, Joris Meys wrote: From: Joris Meys Subject: Re: [R] validation logistic regression To: "azam jaafari" Cc: r-help@r-p

[R] leave-one-out cross validation

2010-05-27 Thread azam jaafari
t: Re: [R] validation logistic regression To: "azam jaafari" Cc: r-help@r-project.org Date: Wednesday, May 26, 2010, 5:00 AM Hi, first of all, you shouldn't backtransform your prediction, use the option type=response instead : salichpred<-predict(salic.lr, newdata=profileva

Re: [R] validation logistic regression

2010-05-26 Thread azam jaafari
ct: Re: [R] validation logistic regression To: "azam jaafari" Cc: r-help@r-project.org Date: Wednesday, May 26, 2010, 5:00 AM Hi, first of all, you shouldn't backtransform your prediction, use the option type=response instead : salichpred<-predict(salic.lr, newdata=profilevalida

[R] validation logistic regression

2010-05-26 Thread azam jaafari
Hi   I did validation for prediction by logistic regression according to following:   validationsize <- 23 set.seed(1) random<-runif(123) order(random) nrprofilesinsample<-sort(order(random)[1:100]) profilesample <- data[nrprofilesinsample,] profilevalidation <- data[-nrprofilesinsample,] salich<-p