Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread Clint Bowman
Martin, I grew up in the Midwest of the United States--about as native English speaker as you could find. I was taught exactly the same as you have learned. Clint Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET:

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread Marc Schwartz
> On Dec 15, 2015, at 9:55 AM, Martin Maechler > wrote: > > > > [] > >> You are missing the closing bracket on the boxplot() >> command. Just finish with a ')' > > Hmm... I once learned > > '()' =: parenthesis/es > '[]' =: bracket(s) >

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread PIKAL Petr
Hi I do not see any problem. Due to HTML posting we are not able to decipher what you are missing. Probably right parentheses. I would start from beginning by boxplot(data) and gradually add required colour and other items to your boxplot. Cheers Petr > -Original Message- > From:

[R] how to plot two variables in a figure using ggplot2

2015-12-15 Thread JimmyGao
Hi everyone, Now,I want to use the following data to produce a figure.But I don't know how to do it.Is anyone have some experiences? X axis using variable XX and Y axis using variable OA and KA XX OA KA 1 1243 0.8157 0.7790 2 2486 0.8190 0.7829 3 3729 0.8278 0.7934 4 4972 0.8354 0.8026 5

Re: [R] adding vector values to corresponding components of a list

2015-12-15 Thread Bert Gunter
I as not able to make sense of your post. Maybe others can. However, you have posted here several times, now. You should therefore know that providing a reproducible example (providing data by e.g. dput() ) **and showing exactly what output you want** would improve your chance of a helpful

Re: [R] Print minified XML in tree format

2015-12-15 Thread Archit Soni
Thanks Giorgio, for the docs! :) However my main aim was to make it run in TERR(TIBCO Enterprise Runtime Engine for R), but it is throwing some different error but was working fine in R Studio. Error:Could not execute function call. TIBCO Enterprise Runtime for R returned an error: 'Error

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread David Winsemius
> On Dec 15, 2015, at 8:54 AM, Clint Bowman wrote: > > Martin, > > I grew up in the Midwest of the United States--about as native English > speaker as you could find. I was taught exactly the same as you have learned. As with your experience, Clint and Martin, but my

[R] Fixed effects regression with state-specific trends

2015-12-15 Thread Jake Russ
Dear All, I am trying to implement a regression with state-specific trends in R. I can implement this in Stata with ease, but I am hoping to preserve my R workflow. I suspect there is an "R formula trick" that I'm just not understanding and I would be grateful to anyone who could help me

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread John Sorkin
On this side of the Atlantic, the symbols ( or ) are properly called parenthesis not brackets. Consider the expression parenthetical expression, which means something enclosed in parentheses. John > John David Sorkin M.D., Ph.D. > Professor of Medicine > Chief, Biostatistics and Informatics >

Re: [R] Hexbin: Counting Bins That Meet Certain Criteria

2015-12-15 Thread David L Carlson
Something like > library(hexbin) > set.seed(42) > xy <- matrix(rnorm(1000), 500) > xy.hex <- hexbin(xy) > table(xy.hex@count) 1 2 3 4 5 6 7 8 159 60 33 16 6 1 2 1 > sum(xy.hex@count >= 3) [1] 59 - David L Carlson Department of

[R] error on multiple "==" in bquote()

2015-12-15 Thread One Two
Hello, I noticed that the function bquote throws an error if there are multiple "==" in the first argument. E.g. > txt.main <- bquote(1 == 2 == 3) Error: unexpected '==' in "txt.main <- bquote(1 == 2 ==" Is this behaviour intended or is it a bug? Because I don't see a reason for this behaviour

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread S Ellison
> It is clear that a ) although is a type of bracket it is called a > parenthesis, just as , > is called a comma, which is a type of punctuation mark. These things are called parentheses because of what they do, not what they are. A parenthesis is any word or phrase inserted as an explanation

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread John Sorkin
Just as there are several types of punctuation marks, , ; : . also called comma, semi-colon, colon, period (or full stop on the east side of the Atlantic), so to are there two types of brackets [ ) also called square brackets, parenthesis. It is clear that a ) although is a type of bracket

Re: [R] adding vector values to corresponding components of a list

2015-12-15 Thread David L Carlson
With each post you seem to be changing what you are trying to accomplish. Your WRONG way seems pretty close if I understand you at all. Just tag the names to the numeric vector instead of the logical vector, eg: > names(dbv) <- letters[1:8] > split(dbv,logmat1) $`FALSE` ad

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread Berend Hasselman
> On 15 Dec 2015, at 18:49, John Sorkin wrote: > > On this side of the Atlantic, the symbols ( or ) are properly called > parenthesis not brackets. Consider the expression parenthetical expression, > which means something enclosed in parentheses. > John >

Re: [R] error on multiple "==" in bquote()

2015-12-15 Thread peter dalgaard
> On 15 Dec 2015, at 13:12 , One Two wrote: > > Hello, > > I noticed that the function bquote throws an error if there are > multiple "==" in the first argument. E.g. >> txt.main <- bquote(1 == 2 == 3) > Error: unexpected '==' in "txt.main <- bquote(1 == 2 ==" > > Is this

Re: [R] TIBCO Enterprise Runtime for R

2015-12-15 Thread David Winsemius
> On Dec 15, 2015, at 5:09 AM, Archit Soni wrote: > > Hi All, > > I have the code to print XML tree that is working successfully in R Studio > but is failing when i try to work it out with TERR: > > x<- XML::xmlParse(y) > > y is input (Coming from a row only once)

[R] TIBCO Enterprise Runtime for R

2015-12-15 Thread Archit Soni
Hi All, I have the code to print XML tree that is working successfully in R Studio but is failing when i try to work it out with TERR: x<- XML::xmlParse(y) y is input (Coming from a row only once) x is output The above code is working in R studio but doesnt work in TERR, please suggest. TIBCO

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread David Winsemius
> On Dec 15, 2015, at 9:21 AM, David Winsemius wrote: > > >> On Dec 15, 2015, at 8:54 AM, Clint Bowman wrote: >> >> Martin, >> >> I grew up in the Midwest of the United States--about as native English >> speaker as you could find. I was taught

Re: [R] Random selection of a fixed number of values by interval

2015-12-15 Thread Frank S.
Many thanks to David L Carlson, Ben Gunter and David Winsemius for your quick and very elegant solutions!! With your list answers I am learning sa lot of things that will help me in the future to program. Best, Frank S. > Subject: Re: [R] Random selection of a fixed number of values by

[R] plot several lines programmaticaly

2015-12-15 Thread PIKAL Petr
Dear all I am stuck with output of some result. Sorry for not providing working example but res is quite a big list and I believe you are able to understand my problem. I have npks variable, which can be anything from 1 to let say 5. I get result called here res as a nested list with several

Re: [R] plot several lines programmaticaly

2015-12-15 Thread PIKAL Petr
Hi Gerrit, Thanks, I tried it and it seems to be viable option. I knew I overlooked something pretty simple. Cheers Petr > -Original Message- > From: Gerrit Eichner [mailto:gerrit.eich...@math.uni-giessen.de] > Sent: Tuesday, December 15, 2015 12:31 PM > To: PIKAL Petr > Cc:

Re: [R] define number of clusters in kmeans/apcluster analysis

2015-12-15 Thread Ulrich Bodenhofer
Dear Luigi, As the others have replied already, you cannot expect a clustering algorithm to produce exactly the result that you expect intuitively. The results of clustering algorithms depend largely on the parameters and, even more importantly, on the distance/similarity measure that is

Re: [R] plot several lines programmaticaly

2015-12-15 Thread Gerrit Eichner
Hi, Petr, from your example it's not doubtlessly clear to me sure how the sequence of ifs should really be continued, but couldn't a nested loop help? Something like: for (i in 1:npks) { plot(res[[i]]$x, res[[i]]$y, pch=20) for (j in 1:i) { lines(res[[i]]$x, res[[i]]$fitpk[j,], col=j,

Re: [R] close specific graphics device

2015-12-15 Thread Sarah Goslee
You could keep track of the device number using dev.cur() when you create the plot, and some combination of dev.set() dev.list() dev.close(which=mydev) to manage them. Sarah On Tue, Dec 15, 2015 at 3:51 PM, Dalthorp, Daniel wrote: > dev.off(which) can be used to close a

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread Jim Lemon
Hi, My understanding is: () - parentheses {} - braces [] - square brackets <> - angle brackets Jim On Wed, Dec 16, 2015 at 6:17 AM, S Ellison wrote: > > It is clear that a ) although is a type of bracket it is called a > parenthesis, just as , > > is called a comma,

[R] party package: is cforest really bagging?

2015-12-15 Thread Benjamin
Hi all, I'm using the "party" package to create random forest of regression trees. I've created a ForestControl class in order to limit my number of trees (ntree), of nodes (maxdepth) and of variables I use to fit a tree (mtry). One thing I'm not sure of is if the cforest algo is using subsets of

Re: [R] close specific graphics device

2015-12-15 Thread Jim Lemon
Hi Dan, The range of device numbers seems to be 1-63. There doesn't appear to be a means of explicitly setting the device number when calling dev.new, and devices are numbered sequentially when they are opened. This means that even if you did know that the device number was, say, 4 it would be

[R] close specific graphics device

2015-12-15 Thread Dalthorp, Daniel
dev.off(which) can be used to close a specific graphics device where "which" is the index of the device, but is there a way to assign a custom number (or name) to a windows device so that specific window can be later closed via dev.off (or some other method) if it is open? The following does NOT

[R] problem with Rcpp and boost threadpool

2015-12-15 Thread Ken Gosier via R-help
I'm having a problem calling a local library through Rcpp with R Studio Server. It's a bit perplexing, since I have no issues when I call it from R at the command line. I've written an analytics library which uses boost's threadpool functionality for running multiple threads. I've stripped

Re: [R] TIBCO Enterprise Runtime for R

2015-12-15 Thread William Dunlap via R-help
It looks like you are calling TERR from Spotfire. The Spotfire/TERR interface can only pass TERR data.frames (eq. to Spotfire tables) back to Spotfire and XMLInternalDocuments cannot be columns of data.frames (in neither TERR nor R). You should contact TIBCO support and/or participate in the

Re: [R] Weird behaviour function args in ellipses

2015-12-15 Thread peter dalgaard
> On 11 Dec 2015, at 20:13 , Duncan Murdoch wrote: > > On 11/12/2015 1:52 PM, Mario José Marques-Azevedo wrote: >> Hi Duncan and David, >> >> Thank you for explanation. I'm really disappointed with this R "resource". >> I think that partial match, mainly in function

Re: [R] problem with Rcpp and boost threadpool

2015-12-15 Thread Bert Gunter
There is a Rcpp-devel mailing list that should be more suitable for this post. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Dec 15, 2015

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread Martin Maechler
[] > You are missing the closing bracket on the boxplot() > command. Just finish with a ')' Hmm... I once learned '()' =: parenthesis/es '[]' =: bracket(s) '{}' =: brace(s) Of course, I'm not a native English speaker, and my teacher(s) / teaching material

[R] adding vector values to corresponding components of a list

2015-12-15 Thread debra ragland via R-help
Hello, I have tried this 2 ways and I keep coming to a dead end as I am not very proficient in R. I have a logical matrix, where I would like to generate every row-wise pair of logical values for further testing. That is row1, row2; row 1, row3 etc. Ideally, I would like to assign a

Re: [R] Trading Strategy and Bootstrap

2015-12-15 Thread Joshua Ulrich
On Thu, Dec 10, 2015 at 4:30 PM, Schiele, Erik wrote: > Hi, > > I'm beginning to fool around in R for trading strategy purposes. To keep it > simple, I have only played with stock data at this point. > > I have created a simple trend following strategy (in blue).

Re: [R] matrix which results singular but at the same time positive definite

2015-12-15 Thread Paul Gilbert
Stefano I think in other response to in this thread you got the answer to the question you asked, but you may be asking the wrong question. I'm not familiar with the specific papers you mention and you have not provided enough detail about what you are doing, so I am guessing a bit. The term

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread Dmitri Leybman
Apologies for the HTML. This is the initial snippet of the values: Var1 Var2 Var3 Var4 Var5 0 0 7 1 0 0 0 7 0 0 1 1 8 2 0 5 5 8 0 0 1 4 8 1 0 4 5 8 0 0 0 1 7 2 1 5 1 7 0 0 2 4 9 0 1 1 2 9 2 NA 1 5 7 1 0 4 1 8 0 0 2 7 7 1 0 7 7 6 2 NA 5 2 7 0 0 0 1 7 0 4 1 3 8 1 0 1 5 7 2 0 7 2 8 0 0 7 0 8 2 0 7

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread S Ellison
> I have tried: > >boxplot(data, las = 2, col = >c("red", "blue", "black", "aquamarine1", "darkorange3"), >at = c(1, 2, 3, 4, 5), par(mar = c(12, 5, 4, 2) + 0.1), >names = c("Meeting1", "Meeting2", "Meeting3", "Meeting4","Meeting5") > > and have gotten a '+' at the end