scale_colour_Bede: Scale Colour Function

View source: R/scale_colour_Bede.R

scale_colour_BedeR Documentation

Scale Colour Function

Description

This function add colours to add to ggplot scales

Usage

scale_colour_Bede(
  palette = "main",
  alpha = 1,
  discrete = TRUE,
  reverse = FALSE,
  ...
)

Arguments

palette

Select one of the preset colour palettes within the package. "main" is default. other options include "cool", "hot","mixed", "grey", "mussels" "bathy", "PhD", "Orkney", "Bathy_Blues" and "SAS"

alpha

add alpha to the legend for continuous scale bars (consistent over whole range of colour)

discrete

Select whether colour scale is discrete or not. Automatic unless selected. TRUE is default.

reverse

Select which direction a scale should be applied.

Examples


df<- data.frame(x=rep(seq(1,10,1),10),
                y=rep(rnorm(10,4),10),
                Treatment=rep(c("A","B"),50))

ggplot(df,aes(x=x,y=y,colour=Treatment))+
geom_point()+
scale_colour_Bede("SAS",alpha=0.8)


BedeFfinian/Utilities.Package documentation built on April 14, 2025, 7:30 a.m.