[R] plot background - excel gradient style background ?
Jim Lemon
jim at bitwrit.com.au
Sat Jun 30 12:04:31 CEST 2012
On 06/30/2012 07:07 AM, jcrosbie wrote:
> I have a number of different figures I wish to create with a gradient
> background. In addition to the two examples I've uploaded I need a boxplot,
> histogram, etc.
>
>
> http://r.789695.n4.nabble.com/file/n4634932/fig1.png fig1.png
> http://r.789695.n4.nabble.com/file/n4634932/fig2.png fig2.png
>
Hi jcrosbie,
Will this do?
library(plotrix)
plot(1:10,type="n")
xylim<-par("usr")
gradient.rect(xylim[1],xylim[3],xylim[2],xylim[4],
c(1,0,1),c(1,0,1),c(1,1,1),gradient="y")
points(1:10)
Jim
More information about the R-help
mailing list