plot_gene {NanoMethViz} | R Documentation |
Plot gene
plot_gene(x, gene, ...) ## S4 method for signature 'NanoMethResult,character' plot_gene( x, gene, window_prop = 0.3, anno_regions = NULL, spaghetti = FALSE, span = NULL, gene_anno = TRUE )
x |
the NanoMethResult object. |
gene |
the gene symbol for the gene to plot. |
... |
additional arguments |
window_prop |
the size of flanking region to plot. Can be a vector of two values for left and right window size. Values indicate proportion of gene length. |
anno_regions |
the data.frame of regions to annotate. |
spaghetti |
whether or not individual reads should be shown. |
span |
the span for loess smoothing. |
gene_anno |
whether or not gene annotation tracks are plotted. |
a patchwork plot containing the methylation profile in the specified region.
a patchwork plot containing the methylation profile in the specified region.
nmr <- load_example_nanomethresult() plot_gene(nmr, "Peg3") nmr <- load_example_nanomethresult() plot_gene(nmr, "Peg3")