scale_fill_Bede: Scale Fill Functions

View source: R/scale_fill_bede.R

scale_fill_BedeR Documentation

Scale Fill Functions

Description

These function add colours to add to ggplot fill scales

Usage

scale_fill_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"

discrete

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

reverse

Select which direction a scale should be applied. #' @param alpha add alpha to the legend for continuous scale bars (consistent over whole range of colour)

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,fill=Treatment))+
geom_point()+
scale_fill_Bede("SAS",alpha=0.6)


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