Learn R Programming

mQTL.NMR (version 1.6.0)

pplot: Plot a color scale layer

Description

Plot the results with a color scale y layer over 3 in 2D

Usage

pplot(z, title, ppm, res, LT = c(5,10,15,20))

Arguments

z
a matrix specifying metabolome genome-wide mQTL mapping results
title
figure title
ppm
a vector of chemical shift
res
mQTL results to be plotted (scanone object)
LT
quantil(res,probs), res: matrix of mQTL mapping results and probs: vector of probabilities

Value

plot of 2-D profile

See Also

ppersp

Examples

Run this code

# Download data files
load_datafiles()

# mQTL mapping results
load(results)

## Plot 3D profile

dev.new(width=5,height=5,pointsize=5)

probs=c(0.95,0.99,0.999,0.9999) ## probabilities

pplot(results$res,"Full 2D Profile", results$ppm, results$best, quantile(results$res,probs=probs))

Run the code above in your browser using DataLab