longbiplot: Biplot a molten data frame using facets

Description Usage Arguments Examples

View source: R/biplot.R

Description

Uses the ggplot framework and facet_grid to produce biplots of a molten data frame.

Usage

1
2
3
4
5
6
7
8
9
longbiplot(x, id.vars, measure.var, namesx = NULL, namesy = NULL,
  namecolumn = NULL, errors = NULL, labeller = ggplot2::label_value,
  validate = TRUE, ...)

## S3 method for class 'qtag.long'
biplot(x, ...)

## S3 method for class 'qtag.wide'
biplot(x, ...)

Arguments

x

the object to biplot

id.vars

the columns that identify a single value

measure.var

The column containing the values to plot

namesx

The names to be included in the x axes, or all the names to be included

namesy

The names to be included on the y axes, or NULL for all possible combinations of namesx.

namecolumn

The column where namesx and namesy are to be found

errors

The column containing the errors. Use NULL for default ("err" if column exists or none otherwise), or NA to suppress.

labeller

The labeller to use to label facets (may want to use label_parsed to use plotmath-style labels)

validate

Ensure id.vars identify unique values

...

passed to aes_string()

Examples

1
2
3
data(pocmaj)
qt <- as.qtag(pocmaj)
biplot(qt, color="core")

mudata documentation built on Nov. 17, 2017, 7:30 a.m.