scoreDensity | R Documentation |
scoreDensity
generates a density plot for visualizing the distribution of scores
across different mutation types.
scoreDensity(
data,
savedir,
type.col = "type",
score.col = "mean",
hist = FALSE,
nbins = 30,
c.fill = c("#FF7575", "lightgreen", "#7298BF", "#E0B0FF", "#FFDAB9", "#40E0D0"),
alpha = 0.5,
x.text = 10,
y.text = 10,
scale.free = FALSE,
space.free = FALSE,
ht = 10,
wd = 8,
name = "DensityPlot",
savepdf = TRUE,
show = TRUE
)
data |
Scores data frame. Expected to have columns containing information about position, control amino acid, mutated amino acid, mutation type, and score. |
savedir |
Character string specifying the directory to save plots. |
type.col |
Column name in |
score.col |
Column name in |
hist |
Logical indicating whether to plot count histogram or density.
Default is |
nbins |
Numeric value specifying the number of bins for the histogram.
Default is |
c.fill |
Vector indicating the fill color for mutation types. |
alpha |
Numeric value between 0-1 indicating the fill transparency.
Default is |
x.text |
Numeric value for x-axis text size. Default is |
y.text |
Numeric value for x-axis text size. Default is |
scale.free |
Logical indicating whether to make score range proportional.
Default is |
space.free |
Logical indicating whether to make panel heights variable.
Default is |
ht |
Numeric value for the height of the saved plot. Default is |
wd |
Numeric value for the width of the saved plot. Default is |
name |
Character string specifying the base name of the saved file. |
savepdf |
Logical indicating whether to also save a PDF version of the plot.
Default is |
show |
Logical indicating whether or not to display the plot in the viewer.
Default is |
NULL.
## Not run:
scoreDensity(data = scores.data, scale.free = TRUE,
savedir = "./plots/", name = "DensityPlot")
## End(Not run)