Francesco Brundu
2014-Apr-18 10:11 UTC
[R-sig-Debian] How to use rainbow function without the gamma argument
Hi, I am using a old code (probably written for R 2.5) and it stops when calling rainbow() with gamma argument. I saw that gamma argument is not present in newer version of R rainbow function. How can I translate this line of code: rainbow(100, s = 1.0, v = 0.75, start = 0.0, end = 0.75, gamma = 1.5) ? It fails with: Error in rainbow(100, s = 1, v = 0.75, start = 0, end = 0.75, gamma = 1.5) : unused argument (gamma = 1.5) Calls: nmfconsensus ... matrix.abs.plot -> image -> image.default -> rainbow Execution halted Thanks ~ Francesco Brundu [[alternative HTML version deleted]]
Johannes Ranke
2014-Apr-19 04:54 UTC
[R-sig-Debian] How to use rainbow function without the gamma argument
Hi Francesco, I see nothing Debian/Ubuntu specific in this question - I hope you don't mind if I point you to the r-help mailing list. Kind regards, and season's greetings, Johannes Am Freitag, 18. April 2014, 12:11:15 schrieb Francesco Brundu:> Hi, > I am using a old code (probably written for R 2.5) and it stops when > calling rainbow() with gamma argument. I saw that gamma argument is not > present in newer version of R rainbow function. How can I translate this > line of code: > > rainbow(100, s = 1.0, v = 0.75, start = 0.0, end = 0.75, gamma = 1.5) > > ? > > It fails with: > > Error in rainbow(100, s = 1, v = 0.75, start = 0, end = 0.75, gamma = 1.5) > > unused argument (gamma = 1.5) > Calls: nmfconsensus ... matrix.abs.plot -> image -> image.default -> rainbow > Execution halted > > Thanks > > > ~ Francesco Brundu > > [[alternative HTML version deleted]] > > _______________________________________________ > R-SIG-Debian mailing list > R-SIG-Debian at r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-debian-- PD Dr. Johannes Ranke Kronacher Str. 8 79639 Grenzach-Wyhlen