Description Usage Arguments Value Examples
PlotStates - plotting the results of PaintStates
1 2  | PlotStates(states, location = NULL, gene.track = NULL,
  additional.tracks = NULL)
 | 
states | 
 A GRangesList produced by   | 
location | 
 A GRanges object of length 1, or a character vector of the form: "chr:start-end", e.g., "chr12:51267156-52080611"  | 
gene.track | 
 optionally, an object created by BiomartGeneRegionTrack() to plot the gene context in addition to segmentation.  | 
additional.tracks | 
 optionally, an object of class "AnnotationTrack" with additional data to plot in addition to segmentation.  | 
Plots the states, of the samples in the states object, and if possible the genes in the region
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  | load(system.file("extdata", "heart.states.rda", package = "StatePaintR"))
load(system.file("extdata", "vista.heart.enhancers.rda", package = "StatePaintR"))
mylocation <- GRanges("chr1:42623508-42754885")
vista.in.range <- subsetByOverlaps(heart.enhancers, mylocation)
vista.anno <- AnnotationTrack(range = vista.in.range,
                              fill = mcols(vista.in.range)$validated + 2,
                              stacking = "dense",
                              col = NULL,
                              col.line = NULL,
                              stackHeight = 1,
                              shape = "box",
                              rotation.title = 360,
                              background.title = "transparent", col.title = "black",
                              cex.title = 0.5,
                              name = "VISTA enhancers")
PlotStates(states = heart.states,
           location = mylocation,
           additional.tracks = vista.anno)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.