search for: colour

Displaying 20 results from an estimated 3060 matches for "colour".

Did you mean: color
2009 May 21
1
Colour Schemes
I've been thinking hard about generating colour schemes for data. There's quite a bit of existing code scattered in various packages for playing with colours and colour palettes, but I can't find the sort of thing I'm after for applying colours to data... To my mind a colour scheme is a mapping from data values to colours. There'...
2006 Dec 29
0
[808] trunk/wxruby2: Make Wx::Colour#== work correctly as documented, tidy docs for that class
...lid #ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[808] trunk/wxruby2: Make Wx::Colour#== work correctly as documented, tidy docs for that class</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>808</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-12...
2007 Mar 21
0
[904] branches/wxruby2/wxwidgets_282: Changes in Wx::Colour API 2.6 -> 2.8
...} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[904] branches/wxruby2/wxwidgets_282: Changes in Wx::Colour API 2.6 -> 2.8</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>904</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-03-21 06:20:07 -0400 (Wed, 21 Mar 2007)&lt...
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 specify these palettes, ocean areas may coloured green (indicating) land, which may be quite confusing. I have looked through various packages, and have found several col...
2008 Jul 06
3
VNC 'fix' for 256 colour game only shows 2 colours?
I'm trying to run an old (~1995) Windows game under Wine, but it requires 256 colours and won't work any higher. I've checked out the 256 colour hacks page and the X methods don't work, because I use the FGLRX drivers and they don't support 8bpp, so I'm trying VNC. I've installed vnc-server and vnc so I can play it through a 256 colour VNC connection, but s...
2009 Aug 10
2
ggplot: colours to geom_segments
Just as an exercise I am tying to add colours to a geom_segment command. I can get one colour but not a sequence of colours. Can anyone suggest how I can get the green lines in the plot below to be different colours? I thought I could use a palatte of colours but that did not seem to work. Thanks =========================================...
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 simple-minded app...
2006 Mar 24
7
belongs_to relation busted....why?
...39;'s call it... tags. So, I''ve got: Tag -> has_many :blah_tags Blah -> has_many :blah_tags Blah_tag -> belongs_to :tag, belongs_to :blah Ok, works fine. Based on a blah_tag entry, I can go blah_tag.blah.name (or whatever). No problem. Substitute, an identical setup for say Colour, and bam. The whole thing throws nils everywhere. I may have a big batch of valid colour_tags, but try to go: colour_tag.colour => NIL! I don''t get it. Identical table setups....identical code.... is colour reserved? Do I need to restart servers or something (tried that...)? Am I going...
2010 Oct 11
2
filled.contour: colour key decoupled from main plot?
Dear R colleagues, I am trying to plot some geophysical data as a filled contour on a continent map and so far the guidance from the R-help archives has been invaluable. The only bit that still eludes me is the colour key (legend) coming with filled.contour: I prefer to generate my own colour palette, mainly based on the quantiles of tenths of the data in order to capture the whole range (of rainfall for example), including the more extreme values both sides. In the colour key this results in uneven distributio...
2008 Apr 22
2
Getting rid of borders on semi-transparent plotting symbols
R version 2.7.0 RC (2008-04-20 r45403) When using semi-transparent filled plotting symbols, the border of the symbol has a different (darker) colour than the interior: plot(0, 0, pch=19, col="#FF000022") (Saving this as a PDF and looking at it magnified may make it easier to see.) This is pretty annoying, since when plotting partially overlapping points, the border colour dominates, making the colour of overlapping points more sa...
2006 Dec 21
1
heres how to get color output in rspec_autotest with rspec 0.7.5
...pec_autotest/lib/ rspec_autotest.rb, add a -c to the spec_command in the initializer function: @spec_command = "spec -c --diff unified" This won''t help however if you want to use rails_spec_server. To do that I patched rspec_0.7.5 to add an option to force the adding of colour codes (I did it this way because I assumed the check for output==Kernel was important for some other situation and I didn''t want to just throw it away): diff -upr rspec-0.7.5/lib/spec/runner/formatter/ base_text_formatter.rb rspec-0.7.5_with_colour_patch/lib/spec/runner/ formatter/b...
2004 Dec 21
4
Creating a vector of colours that are as different from one another as possible
...ainbow 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 colours where adjacent colours are actually quite similar, especially when n (the number of colours) is high. Conceptually I guess what I want is colors from a 3D polygon in 3D colour space, where the number of vertices in the polygon is n, resulting in a color palette where the colors are all quite diff...
2012 Nov 07
1
change colour of geom_step by scale_colour_manual
...ot;hv", size=5.0)+ scale_y_continuous("Rates of initiating first orientation flight", limits=c(0,0.6), expand=c(0,0), breaks=c(0,0.2,0.4,0.6)) + scale_x_continuous("Age of adults (days)", limits=c(0,16), expand=c(0,0), breaks=c(5, 10, 15)) + scale_colour_discrete(name ="Group", breaks=c("ace", "ctrlAM","met"), labels=c("acetone", "untreated","methoprene"))+ theme_bw() + # maek backgr...
2011 Mar 17
4
Help with plotting a line that is multicoloured based on levels of a factor
Hi All, I'm trying to plot data that is a time series of flows that are associated with a specific level, and I would like each level to represent a colour in a line plot. Here is some data that approximates what I'm using: date=c(1:300) flow=sin(2*pi/53*c(1:300)) levels=c(rep(c("high","med","low"),100)) data=cbind.data.frame(date, flow, levels) the "levels" column represents the levels of flow....
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
2010 Nov 04
3
Plotting a grid of directly specified colours
Dear R-help, Could any of you direct me to a function for plotting a grid of colours, directly specified by a matrix of hex colour codes? In other words I'm looking for a heatmap() or image()-like function to which I can specify the colour of each grid location directly, rather than providing a numerical matrix and a 1D-colour scale (heatmap, image, levelplots,NeatMap...). I&...
2005 Mar 30
5
2d plotting and colours
...ood statistical graphs. I tried the kmean clustering for a large matrix ,say > 150 * 150 . I tried the example code given in the tutorial to perform 2d plot # i ranges from 2 to 10 cl <- kmeans(x, i, 20) plot(x, col = cl$cluster) points(cl$centers, col = 1:i ) I see that there are only 8 colours defined , namely black,red,green,blue,cyan,magenta,yello,gray. How should i set my colour preferences to obtain my palette of colours? I checked in the totorial which talks about R.colors and palatte , but i failed to understand how to set it. Thank You Asha
2007 Jan 14
0
[849] trunk/wxruby2/lib/wx/classes/colour.rb: Stock colours weren''t initializing correctly
...ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[849] trunk/wxruby2/lib/wx/classes/colour.rb: Stock colours weren''t initializing correctly</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>849</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-01...
2012 Aug 20
1
Colour gradients and colour fill between points
Hello, Can somebody help me on a colour question? I have a levelplot made with the following syntax: library(lattice) inp <- read.csv("hoenne1", header = TRUE) levelplot(z~x*y, data = inp, region = TRUE, pretty = TRUE, col.regions = terrain.colours) The file "hoenne1" contains the data. I'll give a short exam...
2008 May 22
1
setting specific colours for different groups of points on a scatter plot
Hi, I have a table with three columns of data, let's call these a, b and c. I have produced a scatter plot of a against b, but I would like to colour the points according to their corresponding c values. c takes the value of either 0,1,2,3 or 4 and so I would like to colour all of the points with a c value of 0 one colour, all those with a c value of 1 another colour etc. When I use the following code, it colours the points using default...