[R] incompatible dimensions error

2020-08-24 Thread Andrew Halford
Hi Listers Using mvpart to run a MV regression tree with PCA= TRUE to get a PCA plotted with sites coloured according to the tree output. Unfortunately it wont produce the PCA, instead giving the error message.. Error in cor(xall, xx[order(tree$where), ]) : incompatible dimensions. However,

Re: [R] Export R outputs to SAS dataset

2020-08-24 Thread Daniel Nordlund
It is still not clear to me (1) if you just want the printed output in your SAS list file, or (2) if you want the actual numerical results returned to SAS so that you can do more manipulation with the numbers. If (1) you can precede your R code with sink() to output to your SAS list file  

Re: [R-es] (sin asunto)

2020-08-24 Thread Eric
Creo que el problema se podría simplificar y aún obtener un resultado aceptable si simplemente haces un ajuste lineal en un entorno del punto. Como ya tienes los valores de los puntos de cada curva como dices Carlos, creo que con esa información podrías identificar un entorno adecuado en el

Re: [R] Classification Tree Prediction Error

2020-08-24 Thread Bert Gunter
Purely statistical questions -- as opposed to R programming queries -- are generally off topic here. Here is where they are on topic: https://stats.stackexchange.com/ Suggestion: when you post, do include the package name where you get tree() from, as there might be more than one with this

Re: [R-es] (sin asunto)

2020-08-24 Thread Carlos Ortega
Hola Manuel, Resolver el punto de corte de forma analítica implicaría el tener ajustada cada densidad también de forma analítica. Una alternativa que se me ocurre es la siguiente: - Con la función "density()" ajustar la densidad de las presencias y las ausencias. - Con esta función

[R] Classification Tree Prediction Error

2020-08-24 Thread Xu Jun
Dear all R experts, I have a question about using cross-validation to assess results estimated from a classification tree model. I annotated what each line does in the R code chunk below. Basically, I split the data, named usedta, into 70% vs. 30%, with the training set having 70% and the test

Re: [R] [External] rNOMADS package

2020-08-24 Thread William Dunlap via R-help
Add the arguments type="source" and repos=NULL to your call to install.packages(). repos=NULL means that this is a local file, not something to download from a repository. Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Aug 24, 2020 at 8:31 AM Richard M. Heiberger wrote: > > incorrect

Re: [R] [External] rNOMADS package

2020-08-24 Thread Richard M. Heiberger
incorrect double slash c:// use single slash c:/ On Mon, Aug 24, 2020 at 11:21 Philip wrote: > I am struggling to install a fix for the rNOMADS package which reads > National Weather Service data. I copied the fix (rNOMADS_2.5.0.tar.gz) > from an email to a local drive and then tried to

[R] rNOMADS package

2020-08-24 Thread Philip
I am struggling to install a fix for the rNOMADS package which reads National Weather Service data. I copied the fix (rNOMADS_2.5.0.tar.gz) from an email to a local drive and then tried to install it with the command below. I also tried installing it without the .tar.gz extension and without

[R-es] (sin asunto)

2020-08-24 Thread Manuel Mendoza
Buenas tardes, tengo una variable bimodal (*var)*, de presencias y ausencias (1s y 0s) y otra variable, *prob*, con las probabilidades que le asigna un modelo (entre 0 y 1). Con: *ggplot(Preds, aes(x=prob, fill= var )) + geom_density(alpha=.3)* obtengo la distribución de las presencias y de las

Re: [R] Help on plot from transition matrix

2020-08-24 Thread Jim Lemon
Hi Luis, As so often happens, the image didn't make it. Try PNG or PDF format. Without seeing what you want, it's only guessing. Jim On Mon, Aug 24, 2020 at 6:34 PM Luis Fernando García wrote: > > I am wanting to make a flow diagram like the one attached as an example for > the given dataset. >

[R] Help on plot from transition matrix

2020-08-24 Thread Luis Fernando García
I am wanting to make a flow diagram like the one attached as an example for the given dataset. The idea is to plot a flow diagramm using the probabilities given by a transition matrix like the displayed in the example below. I have found some tools like DiagrammeR which might work for this

Re: [R] ggplot 3-color gradient scales

2020-08-24 Thread April Ettington
Thank you so much! On Mon, Aug 24, 2020 at 5:33 PM Rui Barradas wrote: > Hello, > > Note that the midpoint argument can make a big difference. In the code > below try commenting out the line where the default is changed. > > > f <- function(x){ >(x - min(x))/(max(x) - min(x)) > } > >