ggPoint.Rd
This function is a wrapper around ggplot geom_point to allow for a more intuitive plotting of ArchR data.
ggPoint( x = NULL, y = NULL, color = NULL, discrete = TRUE, discreteSet = "stallion", continuousSet = "solarExtra", labelMeans = TRUE, pal = NULL, defaultColor = "lightGrey", highlightPoints = NULL, colorDensity = FALSE, size = 1, xlim = NULL, ylim = NULL, extend = 0.05, xlabel = "x", ylabel = "y", title = "", randomize = FALSE, seed = 1, colorTitle = NULL, colorOrder = NULL, colorLimits = NULL, alpha = 1, baseSize = 10, legendSize = 3, ratioYX = 1, labelAsFactors = TRUE, fgColor = "black", bgColor = "white", bgWidth = 1, labelSize = 3, addFit = NULL, rastr = FALSE, dpi = 300, ... )
x | A numeric vector containing the x-axis values for each point. |
---|---|
y | A numeric vector containing the y-axis values for each point. |
color | A numeric/categorical vector used to determine the coloration for each point. |
discrete | A boolean value indicating whether the supplied data is discrete ( |
discreteSet | The name of a custom palette from |
continuousSet | The name of a custom palette from |
labelMeans | A boolean value indicating whether the mean of each categorical/discrete color should be labeled. |
pal | A custom palette used to override discreteSet/continuousSet for coloring vector. |
defaultColor | The default color for points that do not have another color applied (i.e. |
highlightPoints | A integer vector describing which points to hightlight. The remainder of points will be colored light gray. |
colorDensity | A boolean value indicating whether the density of points on the plot should be indicated by color.
If |
size | The numeric size of the points to be plotted. |
xlim | A numeric vector of two values indicating the lower and upper bounds of the x-axis on the plot. |
ylim | A numeric vector of two values indicating the lower and upper bounds of the y-axis on the plot. |
extend | A numeric value indicating the fraction to extend the x-axis and y-axis beyond the maximum and minimum
values if |
xlabel | The label to plot for the x-axis. |
ylabel | The label to plot for the y-axis. |
title | The title of the plot. |
randomize | A boolean value indicating whether to randomize the order of the points when plotting. |
seed | A numeric seed number for use in randomization. |
colorTitle | A title to be added to the legend if |
colorOrder | A vector that allows you to control the order of palette colors associated with the values in |
colorLimits | A numeric vector of two values indicating the lower and upper bounds of colors if numeric. Values beyond these limits are thresholded. |
alpha | A number indicating the transparency to use for each point. See |
baseSize | The base font size (in points) to use in the plot. |
legendSize | The size in inches to use for plotting the color legend. |
ratioYX | The aspect ratio of the x and y axes on the plot. |
labelAsFactors | A boolean indicating whether to label the |
fgColor | The foreground color of the plot. |
bgColor | The background color of the plot. |
bgWidth | The background relative width size of the halos in the labeling. |
labelSize | The numeric font size of labels. |
addFit | A string indicating the method to use for adding a fit/regression line to the plot (see |
rastr | A boolean value that indicates whether the plot should be rasterized using |
dpi | The resolution in dots per inch to use for the plot. |