View source: R/scale_fill_bede.R
scale_fill_Bede | R Documentation |
These function add colours to add to ggplot fill scales
scale_fill_Bede(
palette = "main",
alpha = 1,
discrete = TRUE,
reverse = FALSE,
...
)
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) |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.