search for: dark2

Displaying 8 results from an estimated 8 matches for "dark2".

Did you mean: dark
2010 Jan 28
2
color palette for points, lines, text / interactive Rcolorpicker?
...e following constraints: - "red" is reserved for another purpose - colors should be highly distinct - avoid light colors (like "yellow"s) In RColorBrewer, most of the schemes are designed for area fill rather than points and lines. The closest I can find for these needs is the Dark2 palette, e.g., library(RColorBrewer) display.brewer.pal(7,"Dark2") I'm wondering if there is something else I can use. On a related note, I wonder if there is something like an interactive color picker for R. For example, http://research.stowers-institute.org/efg/R/Color/Chart/ d...
2016 Apr 09
1
Run script R
...", colour='black', n=20, size=0.3) + ? scale_y_continuous ("Distance from source, km", limits=c(-500,10000), labels=function(x){x/1000}) +? scale_x_continuous ("Time, seconds", limits=c(0,2)) +? scale_colour_brewer("Distance between cars, m", palette="Dark2", guide = "none") +? scale_fill_brewer("Distance between cars, m", palette="Dark2") +? scale_linetype_manual("Distance between cars, m", values=c(1,2,3,4,5,6,7,8)) +? theme_custom () +? theme (legend.position = c(0.99,-0.05), legend.justification=c(1.0,0...
2012 Jun 27
1
lattice histogram log and non log values
Hello all, Please consider the following library(lattice) Colors. <-rep(brewer.pal(7, "Dark2"),2) color <- 1 Data.X.. <- data.frame(UnitArea = c(rnorm(1000), rnorm(1000)), Type = c(rep("Base",1000),rep("Log",1000))) histogram( ~ UnitArea | Type, data = Data.X.., xlab = "Unit Area", type = "density", panel = func...
2012 Oct 25
2
Minería de texto
...map(tw.corpus, removeWords, sw) doc.m = TermDocumentMatrix(tw.corpus, control = list(minWordLength = 2)) dm = as.matrix(doc.m) # calculate the frequency of words v = sort(rowSums(dm), decreasing=TRUE) d = data.frame(word=names(v), freq=v) #Generate the wordcloud pal2 <- brewer.pal(8,"Dark2") wc=wordcloud(d$word, d$freq, min.freq=min.freq, scale=c(8,.2), max.words=Inf, random.order=FALSE, rot.per=.15, colors=pal2) wc}##Generate an image file of the wordcloudpng("gráfico.png", width=1280,height=1600)generateCorpus(tweets,''afflorezr'',7)de...
2006 Mar 11
1
Layout, xyplot and saving in file
...I need to loop by ndose in the following script ? Here is my script: ----------------------------------------------------------------------------------------- lattice.options(default.theme ="col.whitebg") trellis.device(width=11.9, height=8.5, new = TRUE) couleurs<-brewer.pal(5,"Dark2") sp <- list(superpose.symbol = list(pch =c(1,15,2,12,19),cex = 0.4,col=couleurs), superpose.line = list(col = couleurs, lty =1:5, cex=1)) test<-xyplot(egheart~ctime|patnam, data=decg, type="b", groups=ndose, main="Heart Rate", xlab = "...
2005 Jul 07
2
Brewer colours
...9,226,205, 253,205,172, 203,213,232, 244,202,228, 230,245,201, 255,242,174, 241,226,204, 204,204,204), dim = c(3, 8)) brewerQualitative.Set2 <- array(data = c( 102,194,165, 252,141,98, 141,160,203, 231,138,195, 166,216,84, 255,217,47, 229,196,148, 179,179,179), dim = c(3, 8)) brewerQualitative.Dark2 <- array(data = c( 27,158,119, 217,95,2, 117,112,179, 231,41,138, 102,166,30, 230,171,2, 166,118,29, 102,102,102), dim = c(3, 8)) brewerQualitative.Accents <- array(data = c( 127,201,127, 190,174,212, 253,192,134, 255,255,153, 56,108,176, 240,2,127, 191,91,23, 102,102,102), dim = c(3, 8)) b...
2011 Aug 15
2
Alternative and more efficient data manipulation
Hello list, ## I have been doing the following process to convert data from one form to another for a while but it occurs to me that there is probably an easier way to do this. I am often given data that have column names which are actually data and I much prefer dealing with data that are sorted by factors. So to convert the columns I have previously made use of make.groups() in the lattice
2004 Nov 03
2
Suggested color schemes for points, not regions?
I have seen a couple of posts about color schemes like those at the ColorBrewer site. Most recently: http://geography.uoregon.edu/datagraphics/color_scales.htm These color schemes can work very well for regions (bars, polygons, images, etc.) but are not very suitable for points and/or lines. Is anyone aware of research/suggestions for a color scheme to use for scatter plots? I've looked at