Learn R Programming

metaGE (version 1.2.2)

metaGE.regplot: Plot the z-score of a marker according to a covariate.

Description

The function metaGE.regplot displays the graph of the z-scores of a marker according to a covariate.

Usage

metaGE.regplot(
  Data,
  Covariate,
  EnvName,
  MarkerName,
  VarName,
  Zscore = FALSE,
  aesCol = NULL,
  Main = ""
)

Value

The plot

Arguments

Data

A dataset containing the columns: MARKER and the z-scores or the effects of each marker (in rows) in each environment (in columns), as obtained from metaGE.collect().

Covariate

A dataset containing the values of one or more covariates (in columns) in each environment (in rows).

EnvName

The name of the column containing the names of the environment in the Covariate dataset.

MarkerName

The name of the marker.

VarName

The name of the column containing the covariable to plot.

Zscore

A boolean. If FALSE, the estimated marker effects is plotted. If TRUE, the z-scores of the marker is plotted. (FALSE by default)

aesCol

The name of the column in the Covariate dataset containing a qualitative covariable to specify the color of the points. (optional)

Main

The main to display.(optional)

Examples

Run this code
data("metaData")
data("envDesc")
metaGE.regplot(Data = metaData, Covariate = envDesc, EnvName = "ShortName",
               MarkerName = "AX-91369217", VarName = "Tnight.mean", aesCol = "Classification")

Run the code above in your browser using DataLab