Skip to content
Prev 317844 / 398506 Next

continuous shading in plots

Hello,

Or with base R only,

smooth <- colorRampPalette(c('white', 'darkgrey'))
segments(rep(0,100),seq(-4.5,0,length.out=200),rep(14,200),
  seq(0,4.5,length.out=200), col = smooth(200), lwd = 2)


Hope this helps,

Rui Barradas

Em 18-02-2013 23:30, Jim Lemon escreveu: