Re: [R] Colour gradient is not working.

2015-06-13 Thread Boris Steipe
1. Don't ignore previous advice On Jun 1, 2015, at 10:59 AM, Boris Steipe wrote: > 1. Don't use Nabble for the r-help mailing list. > > 2. Read the posting guide, and read > http://adv-r.had.co.nz/Reproducibility.html > 2. Map your values to a range of integers that you can use as indices

Re: [R] Colour gradient is not working.

2015-06-12 Thread sreenath
How can i use colour gradient according to y axis if the y values not increasing gradualy -- View this message in context: http://r.789695.n4.nabble.com/Colour-gradient-is-not-working-tp4708000p4708595.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Colour gradient is not working.

2015-06-03 Thread MacQueen, Don
Another trick if Bill is correct is to sort the data first, by whatever variable the color is intended to represent. -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 6/2/15, 9:06 AM, "William Dunlap" wrote: >Points later in

Re: [R] Colour gradient is not working.

2015-06-02 Thread William Dunlap
Points later in the input vectors may be obscuring earlier points. If that is the problem then use pch="." or cex=.2 (or some other small number) to make the plot symbols smaller so they don't overlap as much. Sometimes using transparency helps also - try using adjustcolor(Color(n), alpha.f=0.5)

Re: [R] Colour gradient is not working.

2015-06-02 Thread Sarah Goslee
> plot(1:33292, 1:33292,col=Color(33292)) Error in plot.xy(xy, type, ...) : could not find function "Color" Please tell us what you're trying to accomplish. "not working" is rather vague. Without a reproducible example that includes some sample data (fake is fine), the code you used, and some cle

Re: [R] Colour gradient is not working.

2015-06-02 Thread sreenath
sir i done this plot(1:33292, 1:33292,col=Color(33292)) command then it gives the coloured line but again it is not working in my data why? -- View this message in context: http://r.789695.n4.nabble.com/Colour-gradient-is-not-working-tp4708000p4708036.html Sent from the R help mailing list arc

Re: [R] Colour gradient is not working.

2015-06-01 Thread MacQueen, Don
Try this plot(1:33292, 1:33292,col=Color(33292)) and then decide again whether or not it is working. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 6/1/15, 4:12 AM, "sreenath" wrote: >I have a table of 33291 rows.

Re: [R] Colour gradient is not working.

2015-06-01 Thread Boris Steipe
1. Don't use Nabble for the r-help mailing list. 2. Read the posting guide, and read http://adv-r.had.co.nz/Reproducibility.html 3. The following code works for me. Your error is not due to requesting too many colours... n <- 10 x <- rnorm(n) y <- rnorm(n) myPalette <- colorRampPalette(c("r

Re: [R] Colour gradient is not working.

2015-06-01 Thread David L Carlson
Your example is not reproducible. You pass 33292 colors to plot, but never specify how to use them so only the first color (red) is used. If it worked with a smaller number of colors, you were using something other than the default plot function. If it works with a smaller number of colors, but