Re: [R] about multi-optimal points

2017-08-25 Thread Ulrik Stervbo
HI lily, for the colouring of individual points you can set the colour aesthetic. The ID is numeric so ggplot applies a colour scale. If we cast ID to a factor we get the appropriate colouring. test_df <- data.frame(ID = 1:20, v1 = rnorm(20), v2 = rnorm(20), v3 = rnorm(20)) ggplot(data=test_df,

Re: [R] getOption() versus Sys.getenv

2017-08-25 Thread Henrik Bengtsson
There's also the alternative to use both, e.g. by having a system environment variable set a corresponding R option, which then can be overridden using options(). For instance, the R option mc.cores, which is used by the parallel package, is set to the (integer) value of system environment variabl

[R] about multi-optimal points

2017-08-25 Thread lily li
Hi R users, I have some sets of variables and put them into one dataframe, like in the following. How to choose a specific set of pareto front, such as 10 from the current datasets (which contains more than 100 sets)? And how to show the 10 points on one figure with different colors? I can put all

Re: [R] splitting a dataframe in R based on multiple gene names in a specific column

2017-08-25 Thread Jeff Newmiller
If row numbers can be dispensed with, then tidyr makes this easy with the unnest function: # library(dplyr) #> #> Attaching package: 'dplyr' #> The following objects are masked from 'package:stats': #> #> filter, lag #> The following objects are masked from 'package:base': #> #> inte

Re: [R] getOption() versus Sys.getenv

2017-08-25 Thread Duncan Murdoch
On 25/08/2017 1:19 PM, Sam Albers wrote: Hi there, I am trying to distinguish between getOption() and Sys.getenv(). My understanding is that these are both used to set values for variables. getOption is set something like this: option("var" = "A"). This can be placed in an .Rprofile or at the to

[R] getOption() versus Sys.getenv

2017-08-25 Thread Sam Albers
Hi there, I am trying to distinguish between getOption() and Sys.getenv(). My understanding is that these are both used to set values for variables. getOption is set something like this: option("var" = "A"). This can be placed in an .Rprofile or at the top of script. They are called like this getO

Re: [R] Problem in optimization of Gaussian Mixture model

2017-08-25 Thread Jeff Newmiller
You are doing yourself no favors by posting HTML format email... the code shown below has extra characters in it that you probably did not put there. This is a plain text mailing list, so you need to send plain text email. Read the Posting Guide mentioned in the footer of this and every R-help

Re: [R] Pull data from Tally 9.1 to R studio

2017-08-25 Thread jagan krishnan via R-help
Hi, Really appreciate your guidance...I tried google searches before posting here, but may be I am wrong...that's why I thought of getting this forum's guidance... Going through the links shared here..I think I can take up my first task in R with some confidence... Really this is not a sarcastic

Re: [R] strange nlme augpred behaviour

2017-08-25 Thread PIKAL Petr
Hi David No as it is rather big and I just thought somebody who has better insight into how augPred works could point me why such behaviour could happen. I **think** that augPred somehow looks into original groupedData object and some column in full mar.g triggers error. It seems to me, that wh