plotMAhex(MA, array = 1, xlab = "A", ylab = "M",
main = colnames(MA)[array], xlim = NULL, ylim = NULL,
status = NULL, values, pch, col, cex, nbin = 40,
zero.weights = FALSE, style = "colorscale", legend = 1.2,
lcex = 1, minarea = 0.04, maxarea = 0.8, mincnt = 2,
maxcnt = NULL, trans = NULL, inv = NULL, colorcut = NULL,
border = NULL, density = NULL, pen = NULL,
colramp = function(n) { LinGray(n, beg = 90, end = 15) },
newpage = TRUE, type = c("p", "l", "n"),
xaxt = c("s", "n"), yaxt = c("s", "n"),
verbose = getOption("verbose"))RGList, MAList or MArrayLM object,
or any list with components M containing log-ratios and
A containing average intensities. Alternatively a
matrix, AffybatM and A.MA$M.
If omitted, all points are plotted in the default color, symbol and size.status to be
highlighted on the plot. Defaults to unique values of status.
Ignored if there is no status vector.status vector.values. Defaults to 1:length(values). Ignored if
there is no status vector.values. Defaults to 0.2 for the most common status
value and 1 for the others. Ignored if there is no status vector.nbin here~~grid.hexagons for the possibilities.FALSE.
In the latter case, or when 0, no legend is not produced.function specifying a transformation for
the counts such as sqrt.trans.<= maxcnt<="" code="">) specifying the
number of equispaced colorcut values in [0,1].=>grid.hexagons.n as an argument and
returning n colors."n") for
suppressing the plotting of hexagon symbols, or the x- or y-axis,
respectively.hexViewport constructed and used.viewport.hexbin object built with A as the x coordinate
and M as the y coordinate.MA is an RGList or
MAList then this function produces an ordinary within-array
MA-plot. If MA is an MArrayLM object, then the plot is an
fitted model MA-plot in which the estimated coefficient is on the y-axis
and the average A-value is on the x-axis. If MA is a matrix or ExpressionSet object, then this
function produces a between-array MA-plot. In this case the A-values in
the plot are the average log-intensities across the arrays and the
M-values are the deviations of the log-intensities for the specified
array from the average. If there are more than five arrays, then the
average is computed robustly using medians. With five or fewer arrays,
it is computed by means.
The status vector is intended to specify the control status of
each spot, for example "gene", "ratio control", "house keeping gene",
"buffer" and so on. The vector is usually computed using the function
controlStatus from package
The arguments values, pch, col and cex
can be included as attributes to status instead of being
passed as arguments to plotMA.
See points for possible values for pch,
col and cex.
plotMA from package gplot.hexbin.if(require(marray)){ data(swirl)
hb <- plotMAhex(swirl[,1],newpage=FALSE,
main = "M vs A plot with hexagons", legend=0)
hexVP.abline(hb$plot.vp,h=0,col=gray(.6))
hexMA.loess(hb)
}Run the code above in your browser using DataLab