plotGeneAttrPerFeat {TarSeqQC} | R Documentation |
plotGeneAttrPerFeat
plots the achieved performance for each feature
for a particular gene. The resulting graph shows one bar per each gene feature
with heights according to its attribute value.
plotGeneAttrPerFeat(object, geneID, overlap=FALSE, level="feature") ## S4 method for signature 'TargetExperiment' plotGeneAttrPerFeat(object, geneID, overlap=FALSE, level="feature")
object |
TargetExperiment object. |
geneID |
Character indicating the ID of the selected gene. |
overlap |
Logical indicating if the amplicons should be collapsed in overlapped regions. |
level |
Character indicating the level of the plot. Can be 'feature', to plot the features' attribute; 'region', to plot overlapped regions' attribute or 'both'to generate the two previos plots |
ggplot2 graphics.
see full example in TargetExperiment-class
Gabriela A. Merino gmerino@bdmg.com.ar, Cristobal Fresno cfresno@bdmg.com.ar, Yanina Murua ymurua@leloir.org.ar, Andrea S. Llera allera@leloir.org.ar and Elmer A. Fernandez efernandez@bdmg.com.ar
## Loading the TargetExperiment object data(ampliPanel, package="TarSeqQC") ## Exploring amplicon attribute values for a particular gene # Ignoring amplicon overlapping g<-plotGeneAttrPerFeat(ampliPanel, geneID="gene4") # Adjust text size g<-g+theme(title=element_text(size=16), axis.title=element_text(size=16), legend.text=element_text(size=14)) if(interactive()){ g } # Considering amplicon overlapping g<-plotGeneAttrPerFeat(ampliPanel, geneID="gene4", overlap=TRUE, level="both") # Adjust text size g<-g+theme(title=element_text(size=16), axis.title=element_text(size=16), legend.text=element_text(size=14)) if(interactive()){ g }