cnFreq_buildMain {GenVisR} | R Documentation |
given a data frame construct a plot to display proportions of losses and gains across the genome
cnFreq_buildMain(x, plotType, dummy_data, plot_title = NULL, CN_low_colour = "#002EB8", CN_high_colour = "#A30000", x_lab_size = 12, y_lab_size = 12, facet_lab_size = 10, plotLayer = NULL)
x |
object of class data frame containing columns chromosome, start, end, gain, and loss |
plotType |
character string to determine whether to plot proportions or frequencies |
dummy_data |
Object of class data frame containing columns chromosome, start, end, cn, sample. Used for defining chromosome boundaries |
plot_title |
character string for title of plot |
CN_low_colour |
character string specifying low value of colour gradient |
CN_high_colour |
character string specifying high value of colour gradient |
x_lab_size |
integer specifying the size of the X label |
y_lab_size |
integer specifying the size of the Y label |
facet_lab_size |
integer specifying the size of the faceted labels |
plotLayer |
Additional layer to be plotted, can be a theme but must be a ggplot layer |
ggplot object