Re: [R] ggplot2 recycle color palette

2015-03-18 Thread Jim Lemon
Hi Glenn, An easy way is to replicate the colors to the correct length yourself. If the number of variables is "nvar", then newPalette<-rep(cbbPalette,length.out=nvar) Jim On Wed, Mar 18, 2015 at 12:07 PM, Glenn Schultz wrote: > Hello All, > > I have a custom color palette as illustrated below

[R] ggplot2 recycle color palette

2015-03-17 Thread Glenn Schultz
Hello All,  I have a custom color palette as illustrated below.   I have more than 8 variables.  In the case of more than 8 variables I would simply like to recycle the color.  Has anyone done this or know of a way to have to colors recycle if there are more than 8 variables. Best Regards, Gl