theme | R Documentation |
Theme defined in ggbio for plot or tracks.
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()
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 |
Themes speciall designed for tracks, are named following naming schema theme_tracks_*
Return a theme.
Tengfei Yin
## 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.