Displaying 5 results from an estimated 5 matches for "peachpuff".
2009 Jul 24
4
Colors column don't give correct color with plot()
Hey guys,
I'm having trouble getting the correct colors, when they are read from
a csv file. Here's an example:
1 1 black
1 2 green
1 3 green
1 4 black
1 5 peachpuff
Call it blah.csv. Then I ran:
data <- read.csv("blah.csv",header=FALSE,sep="")
and then to plot the data, I ran:
plot(data[,1],data[,2],col=data[,3])
But the output reports a vertical line with colors:
black
red
red
black
green
going up. Is this a bug in R? If so, coul...
1999 Nov 23
1
postscript colors
Is color specification like this available in R for setting
postscript colors?
> hue <- c(0, seq(from = 0, by = 1/(nclass), length = nclass))
> sat <- c(0, rep(1.0, nclass))
> bri <- c(0, rep(1.0, nclass))
> zcolors <- cbind(hue, sat, bri)
> ps.options (setcolor=ps.setcolor.hsb,colors=zcolors)
2009 Aug 07
0
Bar plots with stacked columns marked with askterisks
....dataM <- my.data[,2:ncol(my.data)]
# rownames in first column
rownames <- my.data[,1]
# define colours for the categories
col
=
c
("red
","orange
","yellow
","green
","violet
","cyan","blue","pink","peachpuff","tomato","seagreen","salmon")
my.dataNcol <- ncol(my.data[,2:ncol(my.data)])
my.dataColour <- col[1:my.dataNcol]
# a bar plot with stacked bars
if (is.null(sample_output)) {
pdf( "BarPlot.pdf")
} else {
pdf(file=paste("BarPlot_",...
2004 Mar 24
5
colors, lines, characters .... documentation
Hi,
Very so often when i am plotting something, doing a histogram, or
whatever i am struggling to find out which are the numbers for
different colors, palette names, types of lines, symbols, etc. Is
there any documentation on line with all these numbers / names
and the associated symbol / color???
For example if i am using the command image it uses a palette
from red to yellow, with red the
2000 Feb 29
0
mapping of colornames into hsv: half way done
...", "#DB7093",
"palevioletred1", "#FF82AB",
"palevioletred2", "#EE799F",
"palevioletred3", "#CD6889",
"palevioletred4", "#8B475D",
"papayawhip", "#FFEFD5",
"peachpuff", "#FFDAB9",
"peachpuff1", "#FFDAB9",
"peachpuff2", "#EECBAD",
"peachpuff3", "#CDAF95",
"peachpuff4", "#8B7765",
"peru", "#CD853F",
"pink", "#F...