theme {ggbio}R Documentation

theme in ggbio

Description

Theme defined in ggbio for plot or tracks.

Usage

  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, ...)

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

##  load
library(ggbio)
p <- qplot(data = mtcars, x = mpg,  y = wt, facets = cyl ~ .)
p + theme_null()

plot of chunk unnamed-chunk-1

p + theme_clear()

plot of chunk unnamed-chunk-1

p + theme_pack_panels()

plot of chunk unnamed-chunk-1

p + theme_alignment()

plot of chunk unnamed-chunk-1

p1 <- qplot(data = mtcars, x = mpg,  y = wt)
tracks(p1 = p, p2 = p1)

plot of chunk unnamed-chunk-1

tracks(p1 = p, p2 = p1) + theme_tracks_sunset()

plot of chunk unnamed-chunk-1


[Package ggbio version 1.5.20 ]