Usage
lolliplot(x, y = NULL, z = NULL, fillCol = NULL, labelCol = NULL, txtAngle = 45, txtSize = 5, pntSize = 4, proteinColour = "#999999", obsA.rep.fact = 5000, obsA.rep.dist.lmt = 500, obsA.attr.fact = 0.1, obsA.adj.max = 0.1, obsA.adj.lmt = 0.5, obsA.iter.max = 50000, obsB.rep.fact = 5000, obsB.rep.dist.lmt = 500, obsB.attr.fact = 0.1, obsB.adj.max = 0.1, obsB.adj.lmt = 0.5, obsB.iter.max = 50000, sideChain = FALSE, species = "hsapiens", maxLolliStack = NULL, plotLayer = NULL, paletteA = NULL, paletteB = NULL, host = "www.ensembl.org", out = "plot")
Arguments
x
Object of class data frame with rows representing mutations. The
data frame must contain columns with the following names "transcript_name",
"gene", and "amino_acid_change". Values in the "transcript_name" column must
represent an ensembl transcript id and values in the "amino_acid_change"
column must be in p.notation (see details).
y
Object of class data frame with rows representing mutations. The
data frame must contain columns with the following names "transcript_name"
and "amino_acid_change". Values in the "transcript_name" column must
represent an ensembl transcript id and values in the "amino_acid_change"
column must be in p. notation (optional, see details).
z
Object of class data frame with rows representing regions of
interest. The data frame must contain columns with the following names
"description", "start", "stop" (optional see details).
fillCol
Character string specifying the column name of the argument
supplied to parameter x on which to colour the lollis representing mutations
(see details).
labelCol
Character string specifying the column name of the argument
supplied to parameter x from which to extract and display text corresponding
to mutations (see details).
txtAngle
Integer specifying the angle of label text to be plotted if
an argument is supplied to the labelCol parameter.
txtSize
Integer specifying the size of label text to be plotted if an
argument is supplied to the labelCol parameter.
pntSize
Integer specifying the size of lolli points representing
mutations.
proteinColour
Character string specifying the background colour of the
protein.
obsA.rep.fact
Numeric value representing the repulsive factor for the
lollis plotted, which were derived from the argument supplied to parameter x
(see details and vignette).
obsA.rep.dist.lmt
Numberic value representing the repulsive distance
limit for the lollis plotted, which were derived from the argument supplied
to parameter x (see details and vignette).
obsA.attr.fact
Numeric value representing the attraction factor for
the lollis plotted, which were derived from the argument supplied to
parameter x (see details and vignette).
obsA.adj.max
Numeric value representing the max position adjustment
for the lollis plotted, which were derived from the argument supplied to
parameter x (see details and vignette).
obsA.adj.lmt
Numeric value representing the adjustment limit for the
lollis plotted, which were derived from the argument supplied to parameter x
(see details and vignette).
obsA.iter.max
Integer representing the number of iterations of
position adjustments for the lollis plotted, which were derived from the
argument supplied to parameter x (see details and vignette).
obsB.rep.fact
Numeric value representing the repulsive factor for the
lollis plotted, which were derived from the argument supplied to parameter y
(see details and vignette).
obsB.rep.dist.lmt
Numberic value representing the repulsive distance
limit for the lollis plotted, which were derived from the argument supplied
to parameter y (see details and vignette).
obsB.attr.fact
Numeric value representing the attraction factor for
the lollis plotted, which were derived from the argument supplied to
parameter y (see details and vignette).
obsB.adj.max
Numeric value representing the max position adjustment
for the lollis plotted, which were derived from the argument supplied to
parameter y (see details and vignette).
obsB.adj.lmt
Numeric value representing the adjustment limit for the
lollis plotted, which were derived from the argument supplied to parameter y
(see details and vignette).
obsB.iter.max
Integer representing the number of iterations of
position adjustments for the lollis plotted, which were derived from the
argument supplied to parameter y (see details and vignette).
sideChain
Boolean specifying if amino acid sidechain data should be
plotted in lieu of protein domains (see details).
species
A valid species from which to retrieve protein domain and
sequence data for a given transcript (see details).
maxLolliStack
Integer specifying the cutoff for the maximum number of
lollis allowed to be stacked at a single position.
plotLayer
Valid ggplot2 layer to be added to the plot.
paletteA
Character vector specifying colours for protein domains,
valid only if sideChain==FALSE.
paletteB
Character vector specifying colours for lollis representing
mutations, valid only if argument is supplied to fillCol.
host
Host to connect to for biomaRt queries (see details).
out
Character vector specifying the the object to output, one of
"data", "grob", or "plot", defaults to "plot" (see returns).