Displaying 20 results from an estimated 537 matches for "rainbow".
2008 Sep 17
6
creating rainbow gradients
Hi, how can I create a rainbow gradient in R? For example, let's say I have
a plot of y = x...and I want the plot to go from red -> orange -> yellow ->
green -> blue -> etc.
Right now, I know how to do something like go from red to blue, using the
plotrix library:
library(plotrix)
redToBlue <-
color.scale(...
2017 Jun 08
2
Rainbow in loop
...olour each different kind of
event differently to see visually whether there's any pattern to these events
happening. I could just create a vector of colours and use abline which is easy
obviously, but there's a different number of events for each loco and what I
would like to do is to use rainbow to create a new palette for each graph
To illustrate I have some model code (made-up and v simplified) Real times are
not necessarily whole numbers so there's not a one to one correspondence
between times and index of time elements
sec.time<-seq(0,100)
distance<-c(rep(0,
10),rep(1,5...
2014 Apr 18
1
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, gam...
2003 Oct 23
6
repeating colors in graph 2
I've tried looking at ?colors and ?palette and if I'm understanding it
correctly, I'm supposed to type in (for example) palette(rainbow(13)) before
I type in my plot (of 13 lines) if I want 13 different colors. But this does
not work. Other things that i have tried besides rainbow give me errors.
Am I just doing something completely wrong?
Anna
2017 Jun 08
0
Rainbow in loop
Does:
rainbow(3)[1]
rainbow(3)[2]
rainbow(3)[3]
... solve your issue?
B.
> On Jun 8, 2017, at 8:20 AM, WRAY NICHOLAS <nicholas.wray at ntlworld.com> wrote:
>
> Hi R folk I have a distance time graph for a locomotive and at various times
> different events occur on board the loco....
2011 Sep 16
3
Rainbows! or unicorn?
...tting together a small web frontend for a client to upload files into an existing application. It''s trivial - there will never be more than a (small) handful of concurrent connections, but I need a streaming rack.input for upload progress on files up to 500MB or so. I was planning on using Rainbows! with ThreadSpawn and worker_connections=1, then noticed that unicorn is also listed as having streaming rack.input.
While what I''m doing is pretty much the opposite of the unicorn design case, is there any reason in this scenario for me to use Rainbows!, or should I just go with unicorn...
2004 Dec 10
4
cbind() and factors.
...> cat <- read.table("cogs_category.txt", sep="\t", header=TRUE,
quote=NULL, colClasses="character")
> colnames(cat)
[1] "Code" "Description"
> is.factor(cat$Code)
[1] FALSE
> is.factor(cat$Description)
[1] FALSE
> is.factor(rainbow(nrow(cat)))
[1] FALSE
> cat <- cbind(cat,"Color"=rainbow(nrow(cat)))
> is.factor(cat$Color)
[1] TRUE
> ?cbind
I read a text file in which has two columns, Code and Description.
Neither of these are factors. I want to add a column of colours to the
data frame using rainbow()....
2009 Nov 30
3
Assign palette (e.g. rainbow) to a series of points on 1 plot
...5,6,7,8)
lx90=c(1,1,1,1,.9,.8,.6,.4,.2,.1,0)
day90=c(0,1,2,3,4,5,6,7,8,9,10)
#...and so on10% and a zero (control) series
lx0=c(1,1,1,1,1,1,.9,.9,.8,.8,.6,.5,.4,.3,.2,.1,.1,0)
day0=c(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17)
I want to plot them on one plot with a palette color scheme such as
rainbow or topo.colors, and I want one color per concentration on both
the point and line. I have found a number of ways to plot them:
1. Plot a blank frame big enough to accommodate the control data and
then add the x,y coords using points.
plot(x=day0,y=lx0, type="n", xlab="Day of adult...
2008 Jan 07
7
rainbow function
Hello
I'm using rainbow function to generate 10 colors for the plot and it is
difficult to tell the neighboring colors from each other. How can I make
the colors more differently.
Thanks
Zhaoming
[[alternative HTML version deleted]]
2010 Jan 26
1
ordisymbol - changing symbols used in plotting factor levels
Hello,
I'm trying plot points in an NMDS according to a factor with two levels:
fig<-ordiplot(canod.sol,
type="none",cex.axis=0.9,cex.lab=0.1,pty="m",tck=-0.01)
ordisymbol(fig, y = hab, factor = "habitat", rainbow = T,col = env,
legend = F)
This gets me part of the way - It produces a plot with blue triangles
for the first factor level and red circles for the second level. What
I want to do is change the symbols so they all plot as circles, then
change the colours used to plot each factor level (e.g...
2009 Mar 18
2
multiple barplot
Dear all,
I want to put 9 barplots side by side. My code below only print 5 names from
9 names I gave.
Problem: how to print all of those 9 names? I use cex=0.8 but did not work,
it gave me error message.
d<-matrix(rpois(45,3),5,9)
barplot(d,beside=T,col=rainbow(5),names=c("CRTL","LSB","ONEMKR",
"TWOMKR","BLUP","BLUPQ","BLUP1M","BLUP2M","GAS"))
# with cex=0.8 (but not working)
barplot(d,beside=T,col=rainbow(5),names=c("CRTL","LSB","ON...
2011 Jul 28
1
plotting matrix into 2D color plots with rainbow colors
Dear all,
Can you pl. help me in plotting a matrix into 2D plot with more color
options. I tried to plot with myImagePlot with
RGB color ramp but it shows limited variation in color. There is a rainbow
plot option also. Can anyone help me.
Regards,
Hitendra
--
Hitendra Padalia, PhD
Scientist/Engineer 'SD'
Regional Remote Sensing Centre-North, NRSC
Indian Space Research Organisation
4-Kalidas Road, IIRS Campus, Dehradun-248001, Uttarakhand, India
Tel: 0135-2524329, Mobile: 09411193962
Fa...
2009 Sep 16
0
Rainbows...
Some of you may have noticed the "rainbows" branch of the git
repository. I may be changing that however and making a small group of
gems (or even one gem) that can get loaded at runtime and monkey patch
parts of Unicorn.
Rainbows will primarily be to support things Unicorn sucks at:
1. apps that rely on out-of-datacenter network...
2010 Apr 13
1
formatR: farewell to ugly R code
...more human-readable. If
you have ugly (I mean unformatted) R code like this:
?# rotation of the word "Animation"
# in a loop; change the angle and color
# step by step
for (i in 1:360) {
? # redraw the plot again and again
plot(1,ann=FALSE,type="n",axes=FALSE)
# rotate; use rainbow() colors
text(1,1,"Animation",srt=i,col=rainbow(360)[i],cex=7*i/360)
# pause for a while
Sys.sleep(0.01)}
There are no spaces, no appropriate indent... The package 'formatR'
provides a GUI (by gWidgets) to make messy R code clean and tidy, e.g.
# rotation of the word 'Animat...
2010 Apr 13
1
formatR: farewell to ugly R code
...more human-readable. If
you have ugly (I mean unformatted) R code like this:
?# rotation of the word "Animation"
# in a loop; change the angle and color
# step by step
for (i in 1:360) {
? # redraw the plot again and again
plot(1,ann=FALSE,type="n",axes=FALSE)
# rotate; use rainbow() colors
text(1,1,"Animation",srt=i,col=rainbow(360)[i],cex=7*i/360)
# pause for a while
Sys.sleep(0.01)}
There are no spaces, no appropriate indent... The package 'formatR'
provides a GUI (by gWidgets) to make messy R code clean and tidy, e.g.
# rotation of the word 'Animat...
2004 Jul 12
1
pixmapIndexed color question
Hi
I use pixmapIndexed
tmp.vimp <- array(0,c(x.dim,y.dim))
tmp.vimp <- pixmapIndexed(tmp.vimp, col=rainbow)
to plot values of a 2D matrix. I 'fill' the pixmapIndexed like:
for (x in 1:x.dim) {
for (y in 1:y.dim) {
tmp.vimp at index[x,y] <- my.matrix[x,y]
}}
how can I define, that the colors are painted e.g. according the rainbow
palette?
plot(tmp....
2011 Jul 18
1
Rainbow Ket
I have an application I wish to install under WINE on Ubuntu 10.04 LTS
It uses a parallel port Rainbow (sentinel) Hardware key (dongle) I have
searched and found a few threads that discuss these devices and a few
claims that they have been made too work, but I haven't found a clear
explanation of how what is necessary to get it to work.
--
Rob
2007 Oct 09
3
Order #********** is it possible to get an ogg vorbis version of the In rainbows download?
I'm an free software / open-source user , my order number is #
******** and I would like not having to be subjected to mp3 patent
licensing, is it possible to offer the album in ogg vorbis format for
us free software (as in freedom) / open-source users?
useful links follow
http://www.vorbis.com/faq/
http://en.wikipedia.org/wiki/Ogg_vorbis
http://www.xiph.org
the current state of the art
2017 Oct 27
3
Password encription
Aki Tuomi wrote:
> The use of salt, today, is to prevent the attacker from directly seeing
> who has same passwords. Of course it also will make a rainbow table
> attack less useful,
Not just less useful, but almost infeasible. Given the use of random
salts, you would have to generate (number of possible salts) rainbow
tables. This drastically changes the CPU/storage tradeoffs.
> but then again, no one uses rainbow tables anymore
> since...
2010 Sep 28
3
kgio library / RubyGem
Hello all,
I''ve released kgio, a kinder, gentler I/O library for Ruby. Some of its
features are useful for Unicorn, and all of it is useful for Rainbows!
I intend to make kgio a requirement for both Unicorn and
Rainbows!/Zbatery. I''m comfortable with the code, but extra testers and
extra eyes to review it would be helpful (it''s nearly all C).
There were several factors leading the creation of this library:
1. The performanc...