Learn R Programming

GenVisR (version 1.0.4)

cnFreq_buildMain: Construct CN frequency plot

Description

given a data frame construct a plot to display proportions of losses and gains across the genome

Usage

cnFreq_buildMain(data_frame, plotType, 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)

Arguments

data_frame
object of class data frame containing columns chromosome, start, end, gain, and loss
plotType
character string to determine whether to plot proportions or frequencies
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

Value

ggplot object