Learn R Programming

ggplot2bdc (version 0.3.2)

theme_bdc_paneled: Clean, borderless theme with grey panels and axis ticks

Description

theme_bdc_paneled is a ggplot2 theme that produces a plot with simple grey panels on a white background. Facet labels are displayed as black text. Grid lines can be enabled using the grid.x and grid.y parameters. By default, grid lines along the Y axis are shown. Tick marks can be disabled using the ticks.x and ticks.y parameters.

Usage

theme_bdc_paneled(base_size = 12, base_family = "", grid.x = FALSE,
  grid.y = TRUE, gridmin.x = FALSE, gridmin.y = FALSE, ticks.x = TRUE,
  ticks.y = TRUE, pmargin = base_size/2)

Arguments

base_size
The base size for all text (default: 12)
base_family
The base font family for all text
grid.x
Show grid lines along the X axis (default: FALSE)
grid.y
Show grid lines along the Y axis (default: TRUE)
gridmin.x
Show minor grid lines along the X axis (default: FALSE)
gridmin.y
Show minor grid lines along the Y axis (default: FALSE)
ticks.x
Show tick marks along the X axis (default: TRUE)
ticks.y
Show tick marks along th Y axis (default: TRUE)
pmargin
Margin around the plot (default: 1/2 line)

Value

A list of ggplot theme parameters

See Also

theme

Examples

Run this code
library(ggplot2)

p <- ggplot(movies, aes(x=year, y=budget)) + geom_point() + theme_bdc_paneled()
p

Run the code above in your browser using DataLab