Calling colour palette from within another package isn't working

46 Views Asked by At

I am using a graphing package CGPfunctions to make interaction graphs. In the vignette, they use a RColorBrewer palette using the following code (copied with my own data in there).

plot <- Plot2WayANOVA(formula = MOL ~ x * y, dataframe = scaled, confidence=.95,
          plottype = "line",
          errorbar.display = "SEM",
          xlab = " ",
          ylab = " ",
          title = ggtitle,
          subtitle = NULL,
          offset.style = "wide",
          overlay.type = "none", #box, violin
          posthoc.method = "hsd",
          show.dots = FALSE,
          package = "RColorBrewer",
          palette = "Dark2",
          ggplot.component = theme(text=element_text(size=24)) 

)

However, no colour change results even though RColorBrewer is open, and I haven't deviated from the vignette. Is it something on my end that is preventing the palette from being used?

0

There are 0 best solutions below