I would like to use two color palettes on the same plot. I have two groups and different modalities inside and my goal is each group has its own color palettes
i don t manage to do that with scale_colour_brewer
could anyone help me.
cheers
My topics is actually broad. I am going to specify.
I can sum up my data as follow :
| side | factor | Time | value |
|------|---------|------|-------|
| Left | methodA | 0 | 5 |
| Left | methodA | 1 | 3 |
| Left | methodA | 2 | 2 |
| Right| methodA | 2 | 2 |
| Right| methodA | 2 | 2 |
| Right| methodA | 2 | 2 |
| Left | methodB | 0 | 5 |
| Left | methodB | 1 | 3 |
| Left | methodB | 2 | 2 |
| Right| methodB | 2 | 2 |
| Right| methodB | 2 | 2 |
| Right| methodB | 2 | 2 |
i would like to plot a line of Value against Time - use a red color palette for Side == Left with factor represented by a red variation - use a blue color palette for Side == Right with factor represented by a blue variation
cheers