[R] Colour gradient is not working.

David L Carlson dcarlson at tamu.edu
Mon Jun 1 16:37:18 CEST 2015


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 not more, you may have overloaded the plot device. 

-------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352

-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of sreenath
Sent: Monday, June 1, 2015 6:12 AM
To: r-help at r-project.org
Subject: [R] Colour gradient is not working.

I have a table of 33291 rows. When i try to plot the graph with gradient
colour using "colorRampPalette" command but the out put graph is colourless
or in black colour.But when i try the same command with small values it is
working why it so?

Color <- colorRampPalette(c("red","blue"))

plot(x,y,col=Color(33292))




--
View this message in context: http://r.789695.n4.nabble.com/Colour-gradient-is-not-working-tp4708000.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list