Description Usage Arguments Details Value Note Author(s) See Also Examples
The function arrayPlot creates spatial images of shades of gray or colors that correspond to the values of a statistic for each spot on the array. The statistic can be the intensity log-ratio, a spot quality measure (e.g. spot size or shape), or a test statistic. This function can be used to explore whether there are any spatial effects in the data, for example, print-tip or cover-slip effects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Default S3 method:
arrayPlot(Statistic, Col, Row,
ArrCol, ArrRow, SpotCol, SpotRow,
mediancenter=FALSE,
col=myPalette("green", "red", "yellow"),
contour=FALSE, nlevels=5,
zlim=NULL, bar=c("none", "horizontal", "vertical"),
layout=TRUE, ...)
## S3 method for class 'arrayCGH'
arrayPlot(arrayCGH, variable,
mediancenter=FALSE,
col=myPalette("green", "red", "yellow"),
contour=FALSE, nlevels=5,
zlim=NULL, bar=c("none", "horizontal", "vertical"),
layout=TRUE, ...)
|
arrayCGH |
Object of class |
variable |
Variable to be plotted |
Statistic |
Statistic to be plotted. |
Col |
Vector of columns coordinates. |
Row |
Vector of rows coordinates. |
ArrCol |
Number of columns for the blocs. |
ArrRow |
Number of rows for the blocs. |
SpotCol |
Number of column for each bloc. |
SpotRow |
Number of rows for each bloc. |
mediancenter |
If |
col |
List of colors such as that generated by |
contour |
If |
nlevels |
Numbers of levels added by |
zlim |
Numerical vector of length 2 giving the extreme values of
|
bar |
If |
layout |
If |
... |
Graphical parameters can be given as arguments to function
|
N.B. : Col takes the values in 1:arrayRow*SpotRow and Row takes the values in 1:arrayCol*SpotCol
This function is very similar to the
maImage written by Sandrine Dudoit
(available in marrayPlots package) with
added options zlim, mediancenter and layout.
An image is created on the current graphics device.
People interested in tools dealing with array CGH analysis can visit our web-page http://bioinfo.curie.fr.
Philippe Hupé, glad@curie.fr.
image, contour, arrayPersp, myPalette.
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(arrayCGH)
pdf(file="arrayCGH.pdf",height=21/cm(1),width=29.7/cm(1))
arrayPlot(array2$Log2Rat, array2$Col, array2$Row, 4,4,21,22, main="Spatial Image of array CGH")
dev.off()
# object of class arrayCGH
array <- list(arrayValues=array2, arrayDesign=c(4,4,21,22))
class(array) <- "arrayCGH"
arrayPlot(array,"Log2Rat", main="Spatial Image of array CGH")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.