Displaying 20 results from an estimated 500 matches similar to: "Colorramp in Maptools, how to choose min and max values for the fg= argument"
2009 Apr 17
1
ColorRamp different from ColorRampPalette
I try to use ColorRamp as ColorRampPalette (i.e. with the same gradient), but
it seems there is a nuance that I've missed.
pal.crp<-colorRampPalette( c("blue", "white", "red"), space = "rgb")
plot(rep(0,40),pch=16,col=pal.crp(40))
# is great
But, using the same gradient with colorRamp is giving erratic colors.
pal.cr<-colorRamp(
2011 Apr 18
1
XML Packge for Windows XP and R 2.12.
Hello,
I am looking for the XML Package for Windows or any package, which would
enable me to use the function "xmlTreeParse". In a thread dating from
2001, the same question is raised:
>>Griffith Feeney wrote:
>>
>> Has anyone gotten the XML package (R News 1-1:24) with R running on
Windows
>> (95 or 98 or 2000)? I've looked at the omegahat, expat and libxml
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
2010 Sep 24
2
why I could not reproduce the Mandelbrot plot demonstrated on R wiki
I am trying to reproduce the nice looking of Mandelbrot demonstrated by R
wiki page by the following code:
library(caTools) # external package providing write.gif function
jet.colors = colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan",
"#7FFF7F",
"yellow", "#FF7F00",
2013 Feb 04
1
is it possible to create a trellis object with multiple colorkeys/z-scale axis?
Dear R users-
Do the lattice/latticeExtra packages support multiple tileplots with unique
colorkeys? I am trying to create a visualization of the encounter rate of
certain stocks of salmon across two years. The issue I am having is that
some stocks are encountered at much higher rates than others.the high
encounter rate for one stock washes out the patterns I'm hoping to visualize
across the
2018 Oct 03
1
grDevices::convertColor and colorRamp(space='Lab') Performance Improvements
`grDevices::convertColor` performance can be improved by 30-300x with
small changes to the code. `colorRamp(space='Lab')` uses `convertColor`
so it too benefits from substantial performance gains.
`convertColor` vectorizes explicitly over the rows of the input color
matrix using `apply`. The level-1 patch [1] illustrates a possible
minimal set of changes to achieve this with just R
2003 Feb 11
2
example: Samba + OpenLDAP on FreeBSD (4.7)
Hello all,
This message is simple instructions to install Samba + OpenLDAP on
FreeBSD (4.7). Hope it would help someone.
1. To keep ports update, better install cvsupit in the beginning
mis3# cd /usr/ports/net/cvsupit
mis3# make install clean
Reference: FreeBSD Unleashed (by Urban and Tiemann), p. 425
2. To use Samba + OpenLDAP with the option "ldap ssl =
2006 Sep 14
2
Patch to fix ArtProvider and ArtProvider sample
These patches better implement ArtProvider and add the demo for it. I
also expanded the bigdemo window a little bit. I really think we should
go larger but I suppose there might be some people at 800x600 still.
Note that creating your own art provider still doesn''t quite work
correctly. I didn''t have time to get into that.
The RubyConstants.i.patch file looks weird. Not
2012 Dec 04
0
latticeExtra tileplot question - tiles are not all the same size, need help.
Hello,
I have been creating many tileplots to try and illustrate the relative
abundance of fish through space and time. My issue is that the tiles that
border the plot are smaller than those in the center of the plot. In the
example I've provided the effect is pretty minor (I'm hoping this will be an
adequate example as I had the code already created/data uploaded). However,
I have other
2010 Mar 26
0
ColorRamp different from ColorRampPalette
Try the rgb function in the grDevices library.
pal.cr<-colorRamp( c("blue", "white", "red"), space = "rgb")
plot(rep(0,40),pch=16,col=rgb(pal.cr((0:40)/40),max=255))
Troy
--
View this message in context: http://n4.nabble.com/ColorRamp-different-from-ColorRampPalette-tp889372p1692642.html
Sent from the R help mailing list archive at Nabble.com.
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",
2003 Jan 07
1
Samba machine trust account setting in FreeBSD
Hello!
I am running samba-2.2.7a under FreeBSD 4.7. I tried to run Samba
server as a PDC. However, I couldn't append the character "$" to the
machine account.
According to Samba-PDC-HOWTO.html in swat, I edited the /etc/passwd and
added $ in my machine account manually. But still no use.
It seems that my PDC is ok because it can authenticate the user from
Window ME
2008 Oct 27
1
Problem with script
Hello :-) I am trying to run the next script, it generates "random
areas" inside a map of the american continent,
and then plot it, it?s suppose that every frame gives you the evolution
of the program but at some point it stops
with the weirdest of the errors I?ve ever seen in R, I don?t even have a
line like that :-|
Error in if (random_matrix[x_list[random_sq] - 1,
2016 Apr 16
0
Mean of hexadecimal numbers
On 16/04/2016 8:47 AM, Atte Tenkanen wrote:
> Hi,
>
> How would you calculate the "mean colour" of several colours, for
> example c("#FF7C00","#00BF40","#FFFF00")?
>
Bert answered your subject line question. Your text is asking something
else: if those are colours, you don't want to treat each of them as a
single integer.
A
2005 Oct 03
5
heatmap
Hi,
i created a graph with heatmap(sma) function:
heatmap(dataHeat(x))
and I wish to change the gradation of colors from blue to red, how could
i do?
Using "heatmap(dataHeat(x), col=c(2,4))" i will use only 2 colors
without gradation.
Ty so much
Andrea
2016 Apr 16
5
Mean of hexadecimal numbers
Hi,
How would you calculate the "mean colour" of several colours, for
example c("#FF7C00","#00BF40","#FFFF00")?
Yours,
Atte Tenkanen
2009 Mar 27
3
color vectors other than gray()
I'm trying to create a graph where different cells of a grid (a shapefile)
will be painted with a color share scale, where the most easy way is to use
gray().
Can I somehow get a vector (gradient) of colors, a vector of colors with
other methods but gray()?
I'm doing this until now
quad_N_sp <-
2015 Oct 23
1
Question about dovecot replication
Hi,
last week I installed 2 servers with two dovecot nodes and replication in active/active mode located in different datacenters.
Based on the howto from wiki "http://wiki2.dovecot.org/Replication" it works great.
According to the wiki it is recomended to run "doveadm purge" on both systems continously, because "doveadm purge" will not be replicated by the
2012 Jul 14
1
Quantile Regression - Testing for Non-causalities in quantiles
Dear all,
I am searching for a way to compute a test comparable to Chuang et al.
("Causality in Quantiles and Dynamic Stock
Return-Volume Relations"). The aim of this test is to check wheter the
coefficient of a quantile regression granger-causes Y in a quantile range. I
have nearly computed everything but I am searching for an estimator of the
density of the distribution at several
2010 Nov 20
1
Setting a Red->Yellow->Green Color Transition in Image(...) with yellow corresponding with the Mean Value...
In the following example I would like to have the color transition from
Red->yellow->green in the image(...) function, and if possible have the yellow
be set to correspond with the mean value (for the below 75).
?
I was able to figure something like out when using filled.contour(...), e.g.
filled.contour(ak.fan, levels = c(70, 73, 76,?80, 90), color = terrain.colors)
(I still