Description Usage Arguments Details Value Author(s) See Also Examples
This functions creates a basic plot with the features retrieved by
getDasFeature
or adds them to an existing plot.
1 |
df |
|
col |
Vector of colors for each box in |
col.start, col.end, col.id, col.type |
Names of the columns of the data.frame from which retrieve the values |
box.height, box.sep |
Height and separation between boxes (in percentual points respect y-axis) |
pos.label |
Position of the label respect the box. If |
new |
Open a new graphical device. If |
legend |
Add legend to the plot |
... |
Other graphical parameters passed to |
This function provides a quick way to view (non-overlapped) boxes in a new or an existing plot with the features retrieved.
Notice that boxes will can be plotted overlaping the current open graphical device, so the x-coordinates must match.
(none)
Oscar Flores <oflores@mmb.pcb.ub.es>
1 2 3 4 5 6 7 8 9 10 11 12 13 | # This is UCSC Genome browser
setDasServer(server="http://genome.ucsc.edu/cgi-bin/das")
# Note that id now changes, we can retrieve it from getDasDsn()
source <- "sacCer3"
range <- GRanges(c("I"), IRanges(start=1, end=2500))
type <- c("sgdGene")
# We want the official genes from 'sdgGene' in the range I:1-2500
features <- getDasFeature(source, range, type)
print(features)
plotFeatures(features)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.