annomap: One-bar annotation ggplot

Description Usage Arguments Value See Also

View source: R/annomap.R

Description

one-bar annotation ggplot

Usage

1
2
3
4
annomap(X, title = NULL, x.title = NULL, pal = 1, angle = F,
  breaks = ggplot2::waiver(), x.num = T, flip = F, hide.legend = T,
  legend.pos = "top", ratio = 0.03, mar = 0.015, cols = NULL,
  cols.order = names(cols))

Arguments

X

named character vector of observations and groups (names); or a dataframe with first two columns as observations and groups.

title

annomap title. Default: NULL

x.title

x axis (observations) title (e.g. 'cells'). Default: NULL

pal

numeric value specifying different qualitative brewer palettes. See ggplot2::scale_fill_brewer for details. Default: 1

angle

logical indicating whether to angle title if flip = T. Default: T

breaks

set to NULL to remove x axis tick marks. Default: ggplot2::waiver()

x.num

enumerate observations on x axis? Default: T

flip

observations along y axis instead of x? Default: F

hide.legend

logical. Default: T

legend.pos

character string. See legend.position in ggplot2::theme for details. Default: 'top'

ratio

aspect ratio. If flip = T, ratio = 1/ratio.. Default: 0.03

mar

see plot.margin in ggplot2::themes for details. Default: 0.015

cols

custom colour palette. Option to name colours by groups to choose individual group colours. Default: NULL

cols.order

character vector with groups. Changing the order changes the assignment of colours to groups. Default: names(cols)

Value

ggplot

See Also

waiver,ggplot,scale_continuous,scale_x_discrete,geom_raster,ggtheme,theme,margin,scale_colour_brewer,scale_manual,coord_flip get_legend,rremove


jlaffy/scrabble documentation built on Nov. 16, 2019, 7:56 a.m.