Learn R Programming

gMWT (version 1.4)

plot.estPI: Plot an estPI Object

Description

Plots an estPI object.

Usage

# S3 method for estPI
plot(x,col="black",highlight,hlCol="red",pch=20,zoom=FALSE,...)

Value

A plot for estPI object

Arguments

x

Object of class estPI.

col

Vector of colors of the scatterplot.

highlight

Vector with positions, which shall be marked in special color.

hlCol

Color of highlighted spots.

pch

Dot type of the plot.

zoom

Logical, shall the plots be zoomed to interesting areas?

...

Additional parameters.

Author

Daniel Fischer

Details

This function plots the probabilistic indices from an estPI object. Additional graphical parameters are col, that specifies the colors of the points used in the plot. Furthermore there is the option to highlight the probabilistic indices for specified variables. Those are defined with the highlight option and the hlCol color. One possible application of this is to highlight only the significant test results, or e.g. in the genetic context only those genes, which are located on a certain chromosome.

The boolean option zoom is meant for plotting the graph in a different scale and it adjusts the limits of the x and y axes to the minimum and maximum of the corresponding probabilistic index.

Examples

Run this code
  X <- c(sample(15))
  g <- c(1,1,1,2,2,2,2,3,3,3,4,4,4,4,4)
  res <- estPI(X,g,type="single")
  plot(res)

  X <- matrix(c(rnorm(5000,1.5,2),rnorm(6000,2,2),rnorm(4000,3.5,1),rnorm(3000,2.5,1)),
           byrow=TRUE, ncol=100)
  colnames(X) <- letters[1:100]
  g <- c(rep(1,50),rep(2,60),rep(3,40),rep(4,30))

  res <- estPI(X,g,type="single")
  plot(res)

Run the code above in your browser using DataLab