Displaying 20 results from an estimated 11000 matches similar to: "R-alpha: Colors"
2003 Dec 09
1
arni.colors
Dear r-devel,
I have implemented a function to create color palettes with improved
contrast and logical order, compared with the built-in ones:
source("arni.colors.R") # code is given below
barplot(rep(1,100), col=arni.colors(100), space=0, border=0, axes=F)
par(mfrow=c(2,1)) # rainbow() has too much green...
barplot(rep(1,50), col=rev(rainbow(50,end=0.7)), space=0, border=0,
2003 Oct 29
1
Wishlist: user-specified color names for palette() (PR#4836)
Full_Name: Hsiu-Khuern Tang
Version: 1.8.0
OS: GNU/Linux (Debian unstable)
Submission from: (NULL) (156.153.255.243)
Hi,
I use palette(rgb(red=..., green=..., blue=..., names=mycolors)) to define my
own color palette. After doing this, the names `mycolors' are not stored in
palette() anymore, so that palette() returns a mix of built-in color names and
RGB values.
Eg:
> palette()
2005 May 23
6
colors and palettes and things...
After trying to find if there was a color picker in the FAQs and the help,
I thought I would send a post here. I was overwhelmed with all the
wonderful color choices R has predefined (discovered after typing in
colors()) but can't figure out what they all (by name) look like. Is there
a color picker or some other method to display all those colors next to
the name?
I think I can put together
2012 Dec 12
3
create a color palette with custom ranges between colors
Hello everybody,
I'm trying to create my own color palette on R, in order to interpolate some
different temperature data on different maps (daily means, seasonal
means,...).
I would like to create a color palette which works for each map, so I need a
color palette between -40 and +40?C. Sometimes my data for one map range
from -10 to +20, sometimes from 10 to 30, etc... but always between
2004 Dec 21
4
Creating a vector of colours that are as different from one another as possible
Hi
I want to create a vector of colors that are as different from one
another as possible. ?rainbow states "Conceptually, all of these
functions actually use (parts of) a line cut out of the 3-dimensional
color space...". This suggests to me that the resulting colors are all
placed on this "line" and are equi-distant along it. The resulting
color palette is a range of
2000 Oct 26
2
persp plot question..
Dear All,
I have been trying to to do this for a few days now. I can generate
persp plot OK and can generate it in colour using the command
persp(x,y,z,col=terrain.colors(20))
However, I was wondering if it is possible to shade the 3d surface like a
contour plot. i.e. black for large z, white for small z, say
Thanks in advance
Colin
2009 Nov 23
1
Natural colours for topographic data
Dear list members
I'm currently working on some topographic (elevation) data, and was
somewhat surprised that the 'topo.colors' and 'terrain.colors' are of
little to no use here.
The problem is that these functions only return a palette of colours;
they don't map depth values to colours. So if I plot (using 'image',
'persp' or similar functions) and
2006 Jan 09
0
need palette of topographic colors similar to topo.colors ()
I will second Roger's suggestion, colorRampPalette is a great function for
creating your own palettes. For example, Matlab's jet palette (also
available in fields package under peculiar name 'tim.colors') can be defined
by:
jet.colors = colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan",
"#7FFF7F", "yellow",
2023 Feb 23
2
Palettes {grDevices} - wrong number of colors returned?
Hi,
I would have expected that I get always 3 colors as result which is not
true:
hcl.colors(3, alpha=c(0, 0.5, 1)) # 3 colors
rainbow(3, alpha=c(0, 0.5, 1)) # 3 colors
heat.colors(3, alpha=c(0, 0.5, 1)) # 3 colors
terrain.colors(3, alpha=c(0, 0.5, 1)) # 6 colors
cm.colors(3, alpha=c(0, 0.5, 1)) # 6 colors
topo.colors(3, alpha=c(0, 0.5, 1)) # 9 colors
R-Version and
2009 Mar 13
5
Selecting / creating unique colours for behavioural / transitional data
Dear all,
This seems like a simple problem but i've searched the help files and tried
various options but failed, so apologies in advance for asking what i'm sure
is an easy thing to do!
In short, I have displayed behavioural data using the TraMineR package such
that there is a colour change between the transition of behaviours, however,
all the methods that i have used thus far have
2013 Jun 10
1
Selecting divergent colors
Hi,
I was trying to make a density plot with 13 samples. To distinguish each
sample, it would be good if each color is as different as possible from the
other colors. I could use the built in function, but that does not do more
than 8 colors and then goes back to recycling the cols. If I use a palette,
then it is really difficult to distinguish between the colors.
So, is there a way that I can
2019 Apr 01
2
New grDevices::hcl.colors()
Hi everyone,
I wanted to draw your attention to a new post on the
developer.R-project.org blog:
https://developer.R-project.org/Blog/public/2019/04/01/hcl-based-color-palettes-in-grdevices/
A new function grDevices::hcl.colors() greatly extends the color palette
functionality available in base R. Also, the defaults in the heatmap
functions image() and filled.contour() have been adapted
1997 Aug 08
4
R-alpha: Second patch for 0.50-a1
A second patch for R-0.50-a1 is available from
ftp://stat.auckland.ac.nz/pub/R
The patch produces the following changes
o cpoly problem with pow_di fixed.
o legend had a call to "text" with an incorrect argument tag.
Changed "text" to "labels".
o The variable "dup" was uninitialised in the function "naoktrim" in
2005 May 18
4
256 colors (8bit) graphics not working
I am trying to get one of my kids Windows CDROM based programs to work
under Linux/wine.
With Google and man pages I got past some problems, but now the
application starts and then exists saying that it want 256 colours to run
best !! (It does the same on Win98 until you set the screen to 256
colours, then it is OK. But with Linux I thought I could find a better
solution !)
I have X normally
2004 Jun 14
5
adjusting color palette
Is there a way to increase the "sensitivity" of the color palette in order
to more clearly represent certain sections of data? For example I am
wanting to clearly differentiate between height data for a rolling
landscape but because of the extremes of the dataset (sea and mountain
tops), the bulk of the landscape is shaded in closely approximating green
- i have attempted to do this by
2013 Jul 24
1
Alpha channel in colorRamp() and colorRampPalette()
Hi all,
I had the need to create a colorbar considering the alpha channel of the colors, but colorRamp() and colorRampPalette() ignored the alpha argument in rgb(). So I performed some minor modifs. in their codes, as to support the interpolation using the alpha channel.
I guess that those simple modifications might be useful for other people, so perhaps it would be worth to add them to
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
1997 Jul 22
7
R-alpha: New version of R for testing
The newest version of R for Unix (version 0.50 alpha-1) is now (or will
soon be) available from the following sites.
NORTH AMERICA:
http://lib.stat.cmu.edu/R/Alpha
EUROPE:
ftp://ftp.stat.math.ethz.ch/R/
ftp://statlab.uni-heidelberg.de/pub/mirrors/auckland/R/
JAPAN:
ftp://ftp.u-aizu.ac.jp/pub/lang/R/
NEW ZEALAND:
ftp://stat.auckland.ac.nz/pub/R/
2009 Nov 30
1
Continuous legend colors
Dear List,
I am trying to get a basic plot to show a continuous range of fill colors. It is probably easiest to demonstrate. I would like a legend like in the following example:
Satellite.Palette <-colorRampPalette(c("blue3","cyan","aquamarine","yellow","orange","red"))
require(fields)
image.plot(volcano, col = Satellite.Palette
1997 Aug 21
2
R-alpha: libf2c as a shared library
Ok, I did the following experiment
dyn.load("/usr/local/lib/libf2c.so.2.0")
dyn.load("try.so")
.Fortran("try", 10.5)
where try.so contains the following compiled subroutine
subroutine try(x)
double precision x
write(*,*) x
return
end
It worked just fine (at least here on my FreeBSD machine at home).
So it seems that it will be