Description Usage Arguments Value Author(s) References See Also Examples
Plots about the collected information in a BigBang object. See arguments for details.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | ## S3 method for class 'BigBang'
plot(x,
y=NULL,
...,
type=c("genefrequency","generank","generankstability",
"geneoverlap","geneoverlaphor",
"fitness","fitnessboxes","generations",
"rankindex","genefrequencydist","topgenenumber","rankindexcol",
"confusion","confusionbar","confusionbox",
"splits","splitsmap","splitsfitness","fitnesssplits","fitnesssplitsbox",
"genecoverage","confusionpamr",
"genesintop","genenetwork","genevalues","genevalueslines",
"genevaluesbox","geneprofiles",
"sampleprofiles","rankfitness")[c(1,3,8)],
filter=c("none","solutions","nosolutions"),
subset=TRUE,
mcol=8,
mord=min(ncol(o$data$data),50),
rcol=(if(mcol < 2) c(rep(1,mord),0)
else c(cut(1:mord,breaks=mcol,labels=FALSE),0)),
new.dev=FALSE,
sort.chr=4,
freq.col=rgb(.4,.4,.4),
freq.all.labels=FALSE,
rank.lwd=5,
rank.order=c("rank","reverse","random"),
gene.names=TRUE,
rankindex.log=NULL,
coverage.log="x",
classFunc=NULL,
classes=NULL,
confusion.all=TRUE,
contrast=0.15,
coverage=c(0.25,0.5,0.75,1),
samples=NULL,
samples.cex=0.75,
pch=20,
main=o$main,
nbf=1,
net.method=c("isoMDS","cmdscale","sammon"),
net.th=2,
node.size=6,
node.name=c("index","rownames"),
node.namecol=NULL,
xlim=NULL,
ylim=NULL,
xlab="",
ylab="",
cex=1,
exp.freq=TRUE
)
|
y |
Optional additional data relative to the plot type. Some types may benefit from this parameter. |
type |
Specify the types of plots. |
type="genefrequency" |
Plot the frequency of genes computed from the chromosomes in the specified filter (see |
type="generank" |
Similar to |
type="generankstability" |
Because of the stochasticity of the process, it is difficult to decide how many solutions are required to stabilize the gene ranks and thus avoiding random fluctuations. |
type="geneoverlap" |
Overview of how the chromosomes are “overlapped” and “represented” by the top-ranked genes (see |
type="geneoverlaphor" |
Horizontal version of |
type="genesintop" |
Shows the histogram of the number of top-genes included in models. |
type="fitness" |
The evolution of the maximum fitness for each solution. It includes descriptive confidence intervals (average among all and average among the worst). The point where the highest interval intersects the |
type="fitnessboxes" |
Similar to |
type="generations" |
Distribution of the final generation from each galgo. A large peak at |
type="rankindex" |
Shows the rank versus index. A vertical line indicate many genes in the same rank, probably due by random, not stable or insuficent solutions. |
type="genefrequencydist" |
Shows the distribution of the gene frequency. |
type="topgenenumber" |
Shows the number of genes whose frecuency is higher that specific values. It try to answer questions like “how many genes appears in X chromosomes?”. It is helpful to decide how many “top-genes” include in plots. Genes with low frequency may be asociated with random fluctations. |
type="confusion" |
For classification problems, it shows the confusion matrix and the probability for all samples in each class. It needs a |
type="confusionbox" |
Similar than “confusion” but showing distribution boxes for each class. |
type="confusionpamr" |
Similar than “confusion” in style similar to pamr package. |
type="splits" |
Gives an overview on how the splits were build. Perhaps useless. |
type="splitsmap" |
Gives an clustering overview on how the splits were build (to detect biased splits). Perhaps useless. |
type="splitsfitness" |
It plots the boxplot of the evaluation of chromosomes in different splits. Perhaps useless. |
type="fitnesssplits" |
Plots the distribution of fitness evaluated in different splits. To check whether the chromosomes are “split-dependent”. |
type="fitnesssplitsbox" |
It plots the boxplot of the evaluation of chromosomes in different splits. Perhaps useless. |
type="genecoverage" |
Plot the number of possible top-ranked genes in horizontal versus the percentage of total genes present in chromosomes. It tries to answer questions like "how many |
type="genenetwork" |
Plot the “dependency” of genes to each other in a network format. The distance is a measure of how many chromosomes those two genes are together normalized to the total number of interactions. The thickness of the connection is relative to the relative strength of the shown connections. |
filter |
The |
subset |
Second level of filter. |
mord |
The number of “top-ranked-genes” to highlight. |
mcol |
The number of colours (or sections) to highlight ranked genes. |
rcol |
The specific colours for every “top-ranked-gene”. If specified, its length should be |
new.dev |
For |
sort.chr |
For |
freq.col |
For |
freq.all.labels |
For |
rank.lwd |
For |
rank.order |
For |
genes.names |
|
rankindex.log |
Change the log plot parameter for |
coverage.log |
Change the log plot parameter for |
classFunc |
Specify the classification function when a |
classes |
Specify the classes (overwriting the |
confusion.all |
|
contrast |
Contrast factor for same colour/section in ranks. 0=All genes in same section are exactly the same colour. 1="Maximum" contrast factor. |
coverage |
For |
samples |
Specify the sample names (overwriting the |
samples.cex |
Specify the character size for ploting the sample names. |
nbf |
If |
net.th |
If |
net.method |
If |
node.size |
If |
node.name |
If |
node.namecol |
If |
main,xlab,
ylab,xlim,ylim,cex,pch |
|
... |
Other plot parameters (not always passed to subsequent routines). |
Returns nothing.
Victor Trevino. Francesco Falciani Group. University of Birmingham, U.K. http://www.bip.bham.ac.uk/bioinf
Goldberg, David E. 1989 Genetic Algorithms in Search, Optimization and Machine Learning. Addison-Wesley Pub. Co. ISBN: 0201157675
For more information see BigBang
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
cr <- Chromosome(genes=newCollection(Gene(shape1=1, shape2=100),5))
ni <- Niche(chromosomes=newRandomCollection(cr, 10))
wo <- World(niches=newRandomCollection(ni,2))
ga <- Galgo(populations=newRandomCollection(wo,1), goalFitness = 0.75,
callBackFunc=plot,
fitnessFunc=function(chr, parent) 5/sd(as.numeric(chr)))
#evolve(ga) ## not needed here
bb <- BigBang(galgo=ga, maxSolutions=10, maxBigBangs=10, saveGeneBreaks=1:100)
blast(bb)
plot(bb)
plot(bb, type=c("fitness","genefrequency"))
plot(bb, type="generations")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.