plotGeneAttrPerFeat {TarSeqQC} | R Documentation

## Plot the attribute value for all the features of a selected gene.

### Description

`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.

### Usage

    plotGeneAttrPerFeat(object, geneID, overlap=FALSE, level="feature")

    ## S4 method for signature 'TargetExperiment'
    plotGeneAttrPerFeat(object, geneID, overlap=FALSE,
    level="feature")

### Arguments

`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

### Value

ggplot2 graphics.

### Note

see full example in `TargetExperiment-class`

### Author(s)

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

### See Also

`plotAttrExpl`

### Examples

    ## 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
    }

[Package TarSeqQC version 1.14.0 Index]