search for: ramp

Displaying 20 results from an estimated 287 matches for "ramp".

Did you mean: ram
2004 Mar 26
1
color.ramp in maptools
...ls library to display geographical data. At the moment I have some trouble understanding how the " auxvar " variable is supposed to be used in the plot.Map function. I am using R Version 1.8.1 (2003-11-21) on Linux Looking at the plot.Map function itself, I see that it calls a color.ramp function (I am reporting only the relevant part here): ... if (attr(theMap$Shapes, "shp.type") == "poly") { if (!is.null(auxvar) && nclass > 1) { col.rmp <- color.ramp(nclass, nvec = auxvar) for (i in recs) { ... I don'...
2011 Aug 09
1
Transparent color ramp problem
Hello, I can't seem to add transparency to any color ramp I create using colorRampPalette(). Can someone tell me if it is possible to create transparent colour ramps? I am attempting to map shaded relief under elevation data. I know I can use the terrain.colors() with the alpha option, but I would prefer to create my own colour ramp using more vibrant c...
2011 Dec 12
3
windrose color ramp issue
...lina I'm helping with a script which takes hourly wind speed and direction data to create windroses for our end users. One of the stations in the mountains frequently reaches wind speed of 40 to 60 mph and in storms can reach wind speed over 80 mph. This has brought up an issue with the color ramp. Currently the color ramp works one of two ways: #1) Holding the pedal colors fixed: incrspeeds = 2 # fills out the increments argument pedalcolors = c("darkblue","blue","royalblue","darkturquoise","forestgreen","green","yellowgre...
2005 Feb 16
5
Repeating grey scale in graph?
Dear R users, Could somebody tell me why the grey color ramp is repeated in this graph, eventhough the ramp values go from 0 to 1? I must be missing something obvious, but I can not see it! z <- c(0.064329041,0.117243316,0.161565116,0.19923015,0.231642175,0.259835539,0.284571226, 0.038507288,0.094184749,0.140959431,0.180803984,0.215159105,0.245096084,...
2017 Jun 29
0
plot3D color ramp not working as expected
Hi, I want to use a discrete color ramp with plot3D, and show NA values as white (default). I get unexpected results per the following. # as in help(slice3D) example: par(mfrow = c(2,2)) x <- y <- z <- seq(-1, 1, by = 0.1) grid <- mesh(x, y, z) colvar <- with(grid, x*exp(-x^2 - y^2 - z^2)) slice3D (x, y, z, colvar = colv...
2013 Jan 19
1
Is it possible to create color ramp legend in spplot for discontinuous data ?
Hello All, I have a discontinuous dataset and I used spplot to plot the points. I was wondering whether it is possible to show the legend of the plot as color ramp. I saw that on continuous data. If anyone could tell me that would be great. Another thing I would like to know is how can we create the horizontal legend. By default, the legend is vertical. I was able to shift the legend inside the plot but not horizontal. Some of the code I used is as follows:...
2009 May 20
4
Functions returning functions
Dear All: I have a question regarding the behavior of functions. Say I define a function that returns another function : A <- function(parameters) { # calculations w/ parameters returning 'y' tmpf <- function(x) { # function of 'y' } return(tmpf) } The value of the parameters are stored in an environment local to the function. Then I call x<- something
2000 May 07
1
Problem with match.arg() (PR#536)
...Version 1.0.0 OS: osf1 Submission from: (NULL) (129.240.28.227) Hello again! This is a follow-up to my message on R-help about a problem with match.arg() I have a little more on the topic, but not much really. First, it was not entirely true what I wrote in r-help that I call match.arg() in my ramp(), because ramp() just calls qamp() with runif() as argument, but I have found that it happens both in ramp() and qamp(). Last night, just before I went home, R crashed with a segmentation fault. Unfortunately, I had limit coredumpsize 0, because I seldom want core-files, so I haven't got it...
2005 Nov 04
0
TSC and Power Management Events on AMD Processors
...AMD processors and already properly account for this when using the TSC to derive or interpolate time. C1-state Change =============== The power savings from entering C1-state are enhanced by a feature only recently enabled on multi-processor and multi-core platforms, C1-clock ramping. This feature significantly reduces the power consumption of an idle core that issues the HLT instruction by dividing down its clock rate relative to its current P-state''s input voltage and clock reference rate. When dividing the core''s clock rate down, C1-clock r...
2011 Apr 22
1
Dual colour ramps based on pos/neg values
...words, I have a time series whose data can range arbitrarily from -0.34 to +1.9, for example. However, for the visualization to be effective, I need to be able to distinguish conclusively where the division between positive and negative takes place. My original thought was to just modify the colorRampPalette function inputs to achieve the effect. Unfortunately, because of the smooth blending, it washes out the middle. Not to mention the middle of the colour range is not always zero. What I would to do is concatenate two colour ranges such that: bright red (max negative) -> dark red (min neg...
2005 Sep 05
1
tcltk, X11 protocol error: Bug?
...uble debugging this one. The code is attached below, but it seems to be a problem at the C-tk interface. If I run this 1 time there are no problems if I run it more than once I start to get warnings that increase in multiples of 11 everytime I run it. Here is a sample session > source("clrramp2.r") Loading required package: tcltk Loading Tcl/Tk interface ... done > clrRamp() > > tt<-clrRamp() > tt function (n) { x <- ramp(seq(0, 1, length = n)) rgb(x[, 1], x[, 2], x[, 3], max = 255) } <environment: 0x8b8674c> > image(matrix(1:10),col=tt(10)) > t...
2012 Feb 14
4
Color cells of a matrix as in Excel
...p-light colors (red is bad, yellow is OK, green is good). Image and heatmap expect a matrix in which all the data are in the same scale, but I frequently have different scales in different columns. ie. Column one runs from 1-10 while column 2 runs from 1-100. I thus need to define a separate color ramp for each column. In addition, sometimes the smaller numbers are colored green, while sometimes the larger numbers are preferred and colored green. I also want to print in each cell the numeric value, and I need to show row names. A crude example without the color: RowNames Col1 Col2 ---...
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
2012 Oct 01
6
nlme: spatial autocorrelation on a sphere
I have spatial data on a sphere (the Earth) for which I would like to run an gls model assuming that the errors are autcorrelated, i.e. including a corSpatial correlation in the model specification. In this case the distance metric should be calculated on the sphere, therefore metric = "euclidean" in (for example) corSpher would be incorrect. I would be grateful for help on how to
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 colorRamp...
2000 Nov 11
1
esd bug in ogg123
...other than adding a little flanging from being off a msec or two ;-). esound - these problems only occur with output from ogg123, not from other programs (mpg123, for example) with effectively the same sound sample. Case 2: sample rate "ramp-up" First second starts at too low a data rate and corrects over about a half second's time, resulting in the pitch ramping up to the right pitch. Only occurs with esd. Does not occur with mpg123 on original mp3 file. Does not occur when using oss mode....
2007 Aug 11
3
The Team is In Place
Hello Everyone, I''d like to just officially announce that the new volunteers are in charge and given control of the project. I won''t be doing anything more than helping them get ramped up, but they''ll be in charge of doing all the stuff you folks want and are basically the owners from now on. Everyone in the new volunteer list will probably do a little announce, but here''s the list once again: Ezra Zygmuntowicz <ezmobius at gmail.com> "Kirk Haines...
2000 May 23
1
Random number generation problem (PR#554)
...ondering if it could be the same problem as I reported in (PR#439). I'm using the functions (some comments deleted for brevity): qamp <- function(p, type=c("point", "nolens")) { if(type == "point") return(1 / (2 * sqrt(1 - p))) else return(1) } ramp <- function(n, type=c("point", "nolens")) { if(type == "point") return(qamp(runif(n), type)) else return(rep(1, n)) } ...to generate random numbers. I think there might be something wrong with runif, possibly the same problem as rpois had. More details: I...
2007 May 15
5
Puppet performance
--On Monday, May 14, 2007 9:16 PM -0700 Jos Backus <jos@catnook.com> wrote: > ObPuppet: we ramping up our deployment this week to around 200 hosts. So > far everything has been going smoothly. We don''t have nearly as many and yet, we see occasional errors ("End of file reached") which seems to indicate the network cutting out. I can''t imagine what would caus...
2005 Feb 21
0
Starfury again
...itBlt potential optimization - client-side DIB copy fixme:bitblt:X11DRV_BitBlt potential optimization - client-side DIB copy fixme:bitblt:X11DRV_BitBlt potential optimization - client-side DIB copy fixme:bitblt:X11DRV_BitBlt potential optimization - client-side DIB copy err:xvidmode:ComputeGammaFromRamp inverted or flat gamma ramp (0->0), rejected fixme:ddraw:GL_IDirect3DDeviceImpl_7_3T_SetTextureStageState Unhandled stage type : UNKNOWN => 00000000 I suspect the problem causing my screen to go grey is that error message about the gamma ramp (second last line); it looks like the game's...