guides_basic {ggplot}R Documentation

Default guides

Description

Generate default guides (legends, axes, and labels).

Usage

guides_basic(plot, scales=scales_default(plot))

Arguments

plot plot object
scales plot scales

Details

The default guides built for a plot are:

  • the background colour over the whole plotting area (white)
  • within each a panel a gray background with white gridlines (see ggopt) to change)
  • vertical and horizontal axes (appearance control by options to the position scales)
  • facetting labels (see ggopt) to change default colours etc)

    To decouple plot construction from the objects that are placed within it, each of the grobs produced by this function uses a vpPath.

    Value

    background list of grobs to appear in background
    grid grobs that form background grob
    axes_v vertical axes
    axes_h horizontal axes
    labels row and column labels

    Author(s)

    Hadley Wickham <h.wickham@gmail.com>


    [Package ggplot version 0.4.2 Index]