1 | featureBoxPlot(fraction, numFraction)
|
fraction |
|
numFraction |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (fraction, numFraction)
{
dev.new(width = 9, height = 7)
par(mfrow = c(2, 2), mai = c(0.45, 0.65, 0.45, 0.25), cex = 0.75)
boxplot(fraction$fraction.weight, col = rainbow(numFraction +
1), names = paste("F", 1:numFraction, sep = ""), xlab = "Fraction",
ylab = "Mass (kDa)", main = "(a)")
boxplot(fraction$fraction.length, col = rainbow(numFraction +
1), names = paste("F", 1:numFraction, sep = ""), ylab = "Length (aa)",
main = "(b)")
boxplot(lapply(fraction$fraction.tryptic, log2), col = rainbow(numFraction +
1), names = paste("F", 1:numFraction, sep = ""), ylab = "Log2(Number of Peptides)",
main = "(c)")
boxplot(fraction$fraction.pI, col = rainbow(numFraction +
1), names = paste("F", 1:numFraction, sep = ""), ylab = "Isoelectric Point",
main = "(d)")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.