Learn R Programming

metaplot (version 0.2.1)

overlay.data.frame: Create an Overlay Plot for Data Frame

Description

Creates an overlay plot for class 'data.frame'. Continuous items are plotted vs last continuous item in names(x), conditioned (facetted) by up to two categorical items.

Usage

# S3 method for data.frame
overlay(x, ncol = 4, nrow = 4, color = "black",
  points = TRUE, line = "solid", ylab = NULL, xlab = NULL,
  ylog = FALSE, xlog = FALSE, ...)

Arguments

x

folded. See fold.

ncol

number of panel columns if only one conditioning variable

nrow

number of panel rows if only one conditioning variable

color

color for points and lines, recycled as necessary

points

logical: whether to plot points, recycled as necessary

line

character: line types ('none','solid','dashed', etc. See geom_line). Recycled as necessary

ylab

y axis label to override default

xlab

x axis label to override default

ylog

whether to log-transform y axis data

xlog

whether to log-transform x axis data

...

currently passed to facet_wrap or facet_grid

Value

a ggplot, or list of ggplot as required to support panel_by

See Also

overlay.folded

Other multivariate plots: corsplom, metaplot, overlay.folded