Re: [R] TSclust multivariate time series clustering

2015-08-27 Thread Ranjan Maitra
Hello, Although there is no R package available (we did not think of it), if you want a Gaussian-mixture=model-based approach, you may look at the paper: Model-Based Clustering of Regression Time Series Data via APECM—An AECM Algorithm Sung to an Even Faster Beat by Wei-Chen Chen and Ranjan

Re: [R] compiling Rmd - can't find tex file....

2015-08-27 Thread Witold E Wolski
to answer my own question. I did not find out what knit2pdf is good for but rmarkdown::render does the job. regards On 26 August 2015 at 11:46, Witold E Wolski wewol...@gmail.com wrote: I am using from within R-studio and the .Rmd file builds nicely. However, when I try to compile the

[R] Problem R markdown document

2015-08-27 Thread Conklin, Mike (GfK)
I have successfully done this many times using RStudio's rmarkdown capabilities and knitting the document to HTML or Word. However, I am running into this error today. C:/Program Files/RStudio/bin/pandoc/pandoc FusionTestsAugust25.utf8.md --to docx --from

Re: [R] Problem R markdown document

2015-08-27 Thread boB Rudis
Try increasing the memory for pandoc via knitr YAML options: -- title: TITLE output: html_document: pandoc_args: [ +RTS, -K64m, -RTS ] --- ref: http://stackoverflow.com/a/28015894/1457051 you can bump up those #'s IIRC, too, if they don't work at first. On Thu, Aug 27,

[R] Rcpp, function signature

2015-08-27 Thread Michael Meyer via R-help
Greetings, I am an (very) grateful user of Rcpp. As such I defined a function // [[Rcpp::export]] NumericVector leftShift(NumericVector x){ for(int i=0;in-1;i++) x[i]=x[i+1]; return x; } expecting this function not to affect the parameter x outside the function body as it is passed in by

Re: [R] How to Turn OFF Vectors Recycling Rule in Paste()

2015-08-27 Thread Preeti ranjan Pradhan
Okay, thank you all for your reply. In SAS it doesn't do that way, so I was bit confused. Anyways thanks all. Cheers. On Thu, Aug 27, 2015 at 12:37 PM, PIKAL Petr petr.pi...@precheza.cz wrote: Hi as Jeff said you cannot without modifying source code for paste. If your problem is as you

[R] Problem with gridExtra

2015-08-27 Thread Lorenzo Isella
Dear All, Please consider the snippet at the end of the email, largely based on what you find here http://bit.ly/1ND6MGa When I run it, I get this error Error in arrangeGrob(p, sub = textGrob(Footnote, x = 0, hjust = -0.1, : could not find function textGrob However, the code runs on another

[R] Issues with RPostgres

2015-08-27 Thread Abraham Mathew
I have a user-defined function that I'm using alongside a postgresql connection to summarize some data. I've connected to the local machine with no problem. However, the connection keeps throwing the following error when I attempt to use it. Can anyone point to what I could be doing wrong.

Re: [R] lsqlin in R package pracma

2015-08-27 Thread Raubertas, Richard
Is it really that complicated? This looks like an ordinary quadratic programming problem, and 'solve.QP' from the 'quadprog' package seems to solve it without user-specified starting values: library(quadprog) Dmat - t(C) %*% C dvec - (t(C) %*% d) Amat - -1 * t(A) bvec - -1 * b rslt -

Re: [R] lsqlin in R package pracma

2015-08-27 Thread Wang, Xue, Ph.D.
Hi Richard, It is good to know that solve.QP could solve quadratic programming problem. The difficulty here is that the objective function might not be in quadratic form. It is not in the form of t(X)QX, where Q is an n by n symmetric matrix. Thanks, Xue -Original Message- From:

[R] ggplot2 scale_shape_manual with large numbers instead of shapes

2015-08-27 Thread Marian Talbert
I'm trying to produce a plot with climate data in which colors describe one aspect of the data (emissions scenario) and numbers rather than shapes show the model used (there are 36 models for one emissions scenario and 34 for the other). I'm trying to use numbers rather than symbols because there

Re: [R] ggplot2 scale_shape_manual with large numbers instead of shapes

2015-08-27 Thread Hadley Wickham
Something like this? df - data.frame( x = runif(30), y = runif(30), z = factor(1:30) ) ggplot(df, aes(x, y)) + geom_point(aes(shape = z), size = 5) + scale_shape_manual(values = c(letters, 0:9)) Hadley On Thu, Aug 27, 2015 at 4:48 PM, Marian Talbert mtalb...@usgs.gov wrote: I'm

[R] Fisher's Test 5x4 table

2015-08-27 Thread paul brett
Dear all, I am trying to do a fishers test on a 5x4 table on R statistics. I have already done a chi squared test using Minitab on this data set, getting a result of (1, N = 165.953, DF 12, p0.001), yet using these results (even though they are excellent) may not be suitable for

Re: [R] Rcpp, function signature

2015-08-27 Thread Dirk Eddelbuettel
Michael Meyer via R-help r-help at r-project.org writes: I am an (very) grateful user of Rcpp. Glad to hear that! But you are on the wrong mailing list. Please ask on rcpp-devel. Dirk __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] Issues with RPostgres

2015-08-27 Thread John McKown
On Thu, Aug 27, 2015 at 2:29 PM, Abraham Mathew mathewanalyt...@gmail.com wrote: I have a user-defined function that I'm using alongside a postgresql connection to summarize some data. I've connected to the local machine with no problem. However, the connection keeps throwing the following

Re: [R] Issues with RPostgres

2015-08-27 Thread Hadley Wickham
On Thu, Aug 27, 2015 at 3:46 PM, John McKown john.archie.mck...@gmail.com wrote: On Thu, Aug 27, 2015 at 2:29 PM, Abraham Mathew mathewanalyt...@gmail.com wrote: I have a user-defined function that I'm using alongside a postgresql connection to summarize some data. I've connected to the

Re: [R] ggplot2 scale_shape_manual with large numbers instead of shapes

2015-08-27 Thread Marian Talbert
Not exactly I was trying to only numbers for symbols instead of a mix of letters and numbers just to be consistent. I'm pretty sure someone will nag me if I use both letters and numbers as symbols -- View this message in context:

[R] heat map labeling

2015-08-27 Thread Angela via R-help
Hello, I have a dataset of 985 genes, looks something like the ones below. I want to label only those with the high intensities, since labeling all doesn't show up. Is there a way to do that? If not, is there a way to pull out the highest ones (say, highest 50, or those above X amount) and

Re: [R] xyplot colour points and layout

2015-08-27 Thread Duncan Mackay
Hi Following on from Davids reply you can do the following if you want a key or legend. By putting the colour scheme in par.settings the local equivalent of setting trellis.par.set() for that plot you can get things right for the key without having to have add arguments to key

[R] heat map labeling

2015-08-27 Thread Angela via R-help
Hello, I have a dataset of 985 genes, looks something like the ones below. I want to label only those with the high intensities, since labeling all doesn't show up. Is there a way to do that? If not, is there a way to pull out the highest ones (say, highest 50, or those above X amount) and

[R] Piecewise regression using segmented package plotted in xyplot

2015-08-27 Thread Sumitrajit Dhar
Hi, xyplot(threshold ~ age |frequency.a, data=rage, groups=HL, cex=0.5, layout=c(7,4), par.strip.tex=list(cex=0.8), xlab=Age (years), ylab=Threshold (dB SPL), na.rm=TRUE, panel=function(x,y,groups,...) { panel.superpose(x,y,groups=HL,...) #

[R] Gaussian Mixture Regression

2015-08-27 Thread lucasmalta
Hi, I am looking for a way to run a Gaussian Mixture Regression (GMR) in R. In other words, say that I have a Gaussian Mixture Model (GMM) calculated using, for example, the MClust library. This model represents the joint distribution of two independent variables P(A,B). I need to calculate

Re: [R] lsqlin in R package pracma

2015-08-27 Thread Berend Hasselman
On 27 Aug 2015, at 23:12, Wang, Xue, Ph.D. wang@mayo.edu wrote: Hi Richard, It is good to know that solve.QP could solve quadratic programming problem. The difficulty here is that the objective function might not be in quadratic form. It is not in the form of t(X)QX, where Q is an

Re: [R] TSclust multivariate time series clustering

2015-08-27 Thread cgenolin
You can also try kml3d. You can either use some default distances or define your own. http://www.jstatsoft.org/v65/i04/paper Christophe -- View this message in context: http://r.789695.n4.nabble.com/TSclust-multivariate-time-series-clustering-tp4711517p4711555.html Sent from the R help

Re: [R] igraph plot slowness

2015-08-27 Thread Loris Bennett
Loris Bennett loris.benn...@fu-berlin.de writes: Hi Jim, jim holtman jholt...@gmail.com writes: Here is what it does locally on my PC: library(igraph) topo_data - read.table(text = ibcore01ibswitch01 + ibcore01ibswitch02 + ibcore01ibswitch03 + ibcore02

Re: [R] How to Turn OFF Vectors Recycling Rule in Paste()

2015-08-27 Thread PIKAL Petr
Hi as Jeff said you cannot without modifying source code for paste. If your problem is as you expressed it you can do e.g. paste(S, append(X, rep(NA, length(S)-length(X Cheers Petr -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Preeti ranjan

Re: [R] Problem with gridExtra

2015-08-27 Thread Richard M. Heiberger
gridExtra was changed. This is the email from Baptiste to CRAN package developers that describes the changes and points to the vignettes that will describe the changes. The changes described here are now in the current release of gridExtra. Baptiste Auguie baptiste.aug...@gmail.com Jul 9 Reply