[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)

[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

[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] 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

[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

[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] 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  

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 petr.pi...@precheza.cz To: azam jaafari azamjaaf...@yahoo.com Cc: R-help r-help@r-project.org Sent: Thursday, September

Re: [R] convert to grid file

2011-09-01 Thread azam jaafari
...@precheza.cz To: azam jaafari azamjaaf...@yahoo.com Cc: R-help r-help@r-project.org Sent: Thursday, September 1, 2011 10:22 AM Subject: Re: [R] convert to grid file Hi 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

[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

[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

[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

[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

[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 =

[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

[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,

[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,

[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  

[R] bootpred for multinomial

2010-06-09 Thread azam jaafari
  Is it incorrect?   Azam         --- On Wed, 6/9/10, Uwe Ligges lig...@statistik.tu-dortmund.de wrote: From: Uwe Ligges lig...@statistik.tu-dortmund.de Subject: Re: [R] bootpred for multinomial To: azam jaafari azamjaaf...@yahoo.com Cc: R-help r-help@r-project.org Date: Wednesday, June 9, 2010, 5:46

[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

[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

[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

[R] leave-one-out cross validation

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

[R] leave-one-out cross validation

2010-05-27 Thread azam jaafari
Meys jorism...@gmail.com Subject: Re: [R] validation logistic regression To: azam jaafari azamjaaf...@yahoo.com 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

[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,]

Re: [R] validation logistic regression

2010-05-26 Thread azam jaafari
jorism...@gmail.com Subject: Re: [R] validation logistic regression To: azam jaafari azamjaaf...@yahoo.com 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