You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
34 plot.genotypesort(h, alleleOrder=c("B"))## "B/B" "C/C" "A/C" "A/A" NA "C/B" "B/A" "B/C" "A/C"## --- Use of genotypeOrder ---sort(g, genotypeOrder=c("A/A", "C/C", "B/B", "A/B", "A/C", "B/C"))## "A/A" "C/C" "B/B" "A/B" "A/C" "A/C" "B/C" "B/C" NAsort(h, genotypeOrder=c("A/A", "C/C", "B/B","A/C", "C/B", "B/A", "B/C"))## "A/A" "C/C" "B/B" "A/C" "A/C" "C/B" "B/A" "B/C" NA## --- Missing genotype(s) in genotypeOrder ---sort(g, genotypeOrder=c( "C/C", "A/B", "A/C", "B/C"))## "C/C" "A/B" "A/C" "A/C" "B/C" "B/C" "A/A" NA "B/B"sort(h, genotypeOrder=c( "C/C", "A/B", "A/C", "B/C"))## "C/C" "A/C" "A/C" "B/C" "A/A" NA "C/B" "B/A" "B/B"plot.genotypePlot genotype objectDescriptionplot.genotype can plot genotype or allele frequency of a genotype object.Usage## S3 method for class 'genotype':plot(x, type=c("genotype", "allele"),what=c("percentage", "number"), ...)Argumentsxgenotype object, as genotype.typeplot "genotype" or "allele" frequency, as character.whatshow "percentage" or "number", as character... Optional arguments for barplot.Value<strong>The</strong> same as in barplot.Author(s)Gregor Gorjanc