Learn R Programming

mudata (version 0.1.1)

longbiplot: Biplot a molten data frame using facets

Description

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

Usage

longbiplot(x, id.vars, measure.var, namesx = NULL, namesy = NULL,
  namecolumn = NULL, errors = NULL, labeller = ggplot2::label_value,
  validate = TRUE, ...)

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

# S3 method for 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

Run this code
# NOT RUN {
data(pocmaj)
qt <- as.qtag(pocmaj)
biplot(qt, color="core")

# }

Run the code above in your browser using DataLab