theme: theme in ggbio

Description Usage Arguments Details Value Author(s) Examples

Description

Theme defined in ggbio for plot or tracks.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  theme_null()
  theme_noexpand()    
  theme_alignment(ylabel = FALSE, base_size = 12, base_family = "", 
  axis = TRUE, border = TRUE, grid = TRUE)
  theme_pack_panels(strip.bg = FALSE, strip.text.y = TRUE)
  theme_clear(grid.y = FALSE, grid.x.minor = FALSE, grid.x.major = FALSE,
              panel.background.fill = "white", panel.border.color = NA,
              axis.ticks.x = FALSE, axis.ticks.y = TRUE, grid.color = "gray95",
              axis.line.color = "gray80")
  theme_tracks_sunset(bg = "#fffedb", alpha = 1, ...)
  theme_genome()

Arguments

alpha

alpha blending from 0(transparent) to 1(solid).

axis

logical value, show axis or not.

axis.line.color

color for axis line .

axis.ticks.x

show x ticks or not.

axis.ticks.y

show y ticks or not.

base_family

family for font.

base_size

size for font.

bg

background color for tracks.

border

logical value, show border or not.

grid

logical value, show background grid or not.

grid.color

grid line color.

grid.x.major

show x major grid line or not.

grid.x.minor

show x minor grid line or not.

grid.y

show y grid or not.

panel.background.fill

panel background fill color.

panel.border.color

panel border color.

strip.bg

if strip background is removed.

strip.text.y

if strip text is removed.

ylabel

logical value. Show labels or not.

...

passed to theme_clear.

Details

Themes speciall designed for tracks, are named following naming schema theme_tracks_*

Value

Return a theme.

Author(s)

Tengfei Yin

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
##  load
library(ggbio)
p <- qplot(data = mtcars, x = mpg,  y = wt, facets = cyl ~ .)
p + theme_null()
p + theme_clear()
p + theme_pack_panels()
p + theme_alignment()
p1 <- qplot(data = mtcars, x = mpg,  y = wt)
tracks(p1 = p, p2 = p1)
tracks(p1 = p, p2 = p1) + theme_tracks_sunset()

ggbio documentation built on Nov. 8, 2020, 5:04 p.m.