Re: [R] Grouped boxplots using ggplot() from ggplot2.

2018-07-28 Thread Rolf Turner
On 29/07/18 02:54, Jeff Newmiller wrote: 1) I don't know... it looks to me like you did not run my code. Aaaarrrgghhh. I *thought* I had, but instead left "fill=Type" inside the aes() call and neglected to add fill=NULL outside this call. Du!!! It's tough being mentally challenged,

Re: [R] subsetting ls() as per class...

2018-07-28 Thread akshay kulkarni
dear peter, Its workingthanks a lot... yours sincerely, AKSHAY M KULKARNI From: Peter Langfelder Sent: Saturday, July 28, 2018 11:41 AM To: akshay...@hotmail.com Cc: r-help Subject: Re: [R] subsetting ls() as per class... Looking at ?rm,

Re: [R] a suggestion about the display of structural variants in R

2018-07-28 Thread Bogdan Tanasa
Thank you Jeff. Yes, certainly, I posted a message on BioC too, although I have not received any suggestions by now. On Sat, Jul 28, 2018 at 8:05 AM, Jeff Newmiller wrote: > My suggestion is to pay attention to Boris and ask people who do this kind > of plotting frequently... and they are

Re: [R] subsetting ls() as per class...

2018-07-28 Thread William Dunlap via R-help
> objClasses <- unlist(eapply(.GlobalEnv, function(x)class(x)[1])) > head(objClasses) f E "function" "environment" df h "tbl_df""function" myData L "list""list" > names(objClasses)[objClasses=="tbl_df"]

Re: [R] a suggestion about the display of structural variants in R

2018-07-28 Thread Jeff Newmiller
My suggestion is to pay attention to Boris and ask people who do this kind of plotting frequently... and they are typically found on the Bioconductor mailing list, not this list. On Sat, 28 Jul 2018, Bogdan Tanasa wrote: Dear Boris, good morning, and thank you for your message. After

Re: [R] a suggestion about the display of structural variants in R

2018-07-28 Thread Bogdan Tanasa
Dear Boris, good morning, and thank you for your message. After thinking a bit more yesterday, I believe that I could adapt the functionality of some R packages that display the synteny regions across multiple species (here please see an example Figure 1 from http://www.g3journal.org/

Re: [R] Grouped boxplots using ggplot() from ggplot2.

2018-07-28 Thread Jeff Newmiller
1) I don't know... it looks to me like you did not run my code. I have included a complete reprex below... try it out in a fresh session. If you still get the problem, check your sessionInfo package versions against mine. 2) This still smells like your fill parameter is inside the aes

Re: [R] Saving objects in RData file in different name

2018-07-28 Thread Jeremie Juste
Christofer Bogaso writes: Hello In case you have conflicting data issue when you load data, you can also do it the other way around. Indeed you never know when a possible conflict might occur in the future. The following line load the data in a new environment e first then get it back to

Re: [R] a suggestion about the display of structural variants in R

2018-07-28 Thread Boris Steipe
Maybe the Bioconductor package "intansv" can help you. You asked for linear chromosomes, but such data is commonly plotted in Circos plots as e.g. with the Bioconductor OmicsCircos package (cf. https://bioconductor.org/packages/devel/bioc/vignettes/OmicCircos/inst/doc/OmicCircos_vignette.pdf)

Re: [R] Saving objects in RData file in different name

2018-07-28 Thread K. Elo
Hi! Maybe not the most elegant solution, but a workaround is to have a function: > save2<-function(y, ...) { save(y,...)} > save2(x1,x2,file="test.RData") The point is to include the variables to be "renamed" as parameters (in my example: y). The function will use the parameter variable names

[R] Saving objects in RData file in different name

2018-07-28 Thread Christofer Bogaso
Hi, Let say I have 2 objects as below x1 = 1:3 x2 = 5:4 Now I want to save both x1 and x2 in some RData file, however x1 will be saved with a different name e.g. y I tried below save(y = x1, x2, file = "file.RData") However still they are saved in their original names i.e. x1 and x2, not y

Re: [R] subsetting ls() as per class...

2018-07-28 Thread Henrik Bengtsson
The ll() function of R.oo returns a data.frame with various attributes that you can subset on, e.g. > subset(R.oo::ll(), data.class %in% c("zoo", "xts")) member data.class dimension objectSize 2 fzzoo10 1344 4 sample.xtsxts c(180,4) 10128 5

Re: [R] Grouped boxplots using ggplot() from ggplot2.

2018-07-28 Thread Rolf Turner
On 28/07/18 17:03, Jeff Newmiller wrote: When you understand the strong dependence on how the data controls ggplot, using it gets much easier. I still have to google details sometimes though. Note that it can be very difficult to make a weird plot (e.g. multiple parallel axes) in ggplot

[R] a suggestion about the display of structural variants in R

2018-07-28 Thread Bogdan Tanasa
Dear all, we wish you a fruitful and refreshing weekend ! Thought that I may also write to ask you for a suggestion, specifically if you could please advise on whether there is any package already built (in R) that could help with the following data visualization : we have a set of

Re: [R] subsetting ls() as per class...

2018-07-28 Thread Jeff Newmiller
You can extract the names into a character vector with ls and then use grep(..., values=TRUE ) to select which ones you want to remove, and then pass that list to rm. However, due to the way R handles memory you are unlikely to see much savings by doing this. I would recommend focusing on

Re: [R] subsetting ls() as per class...

2018-07-28 Thread Peter Langfelder
Looking at ?rm, my solution would be something like rm(list = grep("\\.NS$", ls(), value = TRUE)) But test it since I have not tested it. Peter On Fri, Jul 27, 2018 at 10:58 PM akshay kulkarni wrote: > > dear memebers, >I am using R in AWS linux instance for