Re: [R] Color of points in legend() ignored if plotting to PNG

2016-02-28 Thread Jim Lemon
Works on linux R version 3.2.3 (2015-12-10) Platform: x86_64-redhat-linux-gnu (64-bit) Running under: Fedora 23 (Twenty Three) Jim On Mon, Feb 29, 2016 at 1:45 AM, Boris Steipe wrote: > Works for me on Mac OS... > > R version 3.2.2 (2015-08-14) > Platform: x86_64-apple-darwin13.4.0 (64-bit) > R

Re: [R] flag a record

2016-02-28 Thread Ashta
Thank you very much Jim! It is working fine!! On Sun, Feb 28, 2016 at 1:46 AM, Jim Lemon wrote: > Hi Ashta, > This does not seem too difficult: > > DF$flag<-"n" > for(thisname in unique(DF$Name)) { > if(any(DF$year[DF$Name == thisname] %in% c(2014,2015) & > DF$tag[DF$Name == thisname])) > DF

Re: [R] manage algorithm in R studio

2016-02-28 Thread Boris Steipe
This is probably fun to write, but it's been done many times before. For practical purposes, use the pairwiseAlignment() function in the Biostrings package, distributed by the bioconductor project. cf.: https://www.bioconductor.org/packages/3.3/bioc/vignettes/Biostrings/inst/doc/PairwiseAlignme

Re: [R] manage algorithm in R studio

2016-02-28 Thread Jeff Newmiller
Quite possibly, if Google is to be trusted. -- Sent from my phone. Please excuse my brevity. On February 28, 2016 1:03:28 AM PST, "Matej Matjašec" wrote: >Hello, > >I need some instruction about R studio library, that using algorithm >Needleman - Wunsch and Smith - Waterman. How can I present

[R] manage algorithm in R studio

2016-02-28 Thread Matej Matjašec
Hello, I need some instruction about R studio library, that using algorithm Needleman - Wunsch and Smith - Waterman. How can I present this algorithm in R, calculate maximum score sequence alignment ? It is possible that things in R? Thank you very much in advance for your reply. Greetings, Mat

Re: [R] axis break in R

2016-02-28 Thread Marc Girondot
Hi Eike, I didn't know how to do, so it was a nice exercise. Here is a solution using plot(). I have made a function plot.break(); the name of parameters of the function are self-explained (I think), but tell me if you need more explanation. You can add any parameters of the plot() function.

Re: [R] Color of points in legend() ignored if plotting to PNG

2016-02-28 Thread Boris Steipe
Works for me on Mac OS... R version 3.2.2 (2015-08-14) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.9.5 (Mavericks) [...] On Feb 28, 2016, at 8:02 AM, Helmut Schuetz wrote: > Dear all, > > if I plot to a PNG, the color of filled points (pch 21:25) in legend() is > ign

Re: [R] is this an R bug or a DBI bug?

2016-02-28 Thread Anthony Damico
tested this out on 3.2.0, 3.2.1, and 3.2.2 -- only happens on 3.2.3, so i assume it was an R bug not a DBI bug. submitted here: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=16734 On Sat, Feb 27, 2016 at 6:20 PM, Anthony Damico wrote: > this happens with both SQLite and MonetDBLite, s

[R] Color of points in legend() ignored if plotting to PNG

2016-02-28 Thread Helmut Schuetz
Dear all, if I plot to a PNG, the color of filled points (pch 21:25) in legend() is ignored (i.e., only the background color is used). It does not matter whether I specify the default png(bg="white") or png(bg="transparent"). The example below x <- rnorm(10) y <- rnorm(10) plot(x, y, pch = 21