In this vignette, we focus on the different visualizations you can generate by changing the arguments for the image and barplot methods. The main arguments to image, when using a CytobandData object from the package are
The barplot method only takes the what argument, which in this case must be a length-one character vector.
To produce the figures in this gallery, we will use a dataset that comes with the package, already processed,
##  "Chromosome" "loc.start" "loc.end" "Band" "Arm" ##  "A.Loss" "A.Gain" "A.Fusion" "B.Loss" "B.Gain" ##  "B.Fusion" "C.Loss" "C.Gain" "C.Fusion"
The banddata object includes data at the resolution of a cytoband for three sets of samples (denoted A, B, and C), describing the frequency of loss, gain, and fusion events for each set.
The first visual is a barplot to show the frequencies of cytogenetic events mapped to the associated chromosome. The main parameters for
barplot are (1) the CytobandData object containing the dataset, (2) the specific data column that you want to graph, and (3) the color of the graph.
Plots of the data along one chromosome can be oriented either horizontally or vertically. By (our) definition, “horizontal” and “vertical” refer to the orientation of the chromosome with its cytoband shading. Unless specified, the horiz argument is set to FALSE by default.
The “vertical stacked chromosome” allows you to see a vertical barplot and its associated chromosome on the y axis, this allows you to see multiple cytogenetic events on a specified chromosome. The parameters to produce this image are the dataset, the cytogenetic event, and a specific chromosome.
The next visual is nearly identical to “vertical stack chromosome” with the exception that the visual is set along the x-axis instead of the y axis.
This set of visuals allows the user to directly compare two sets of cytogenetic events on a specified chromosome on the y-axis.
The next visual is similar to the previous visual except that the orientation is switched from vertical to horizontal.
We can also produce “idiograms” that show the data for all chromosomes at once rather than just one chromosome at a time.
The simplest idiogram visualizes a single data colum of cytogenetic events for all chromosomes. The parameters are similar to the previous visuals with the exception that chr is set to
all and we describe the colors using the argument pal (for pallete).
This image allows you to do a comparison between two cytogenetic events on all the chromosomes.
The next visual is the same as the previous with the exception that the user can dictate how many total rows they want to display. (The default is 2; permitted values range from 1 to 4.)
This visual is the same as before except that we have switched from vertical to horizontal.