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,
...
)
A numeric vector containing the x-axis values for each point.
A numeric vector containing the y-axis values for each point.
A numeric/categorical vector used to determine the coloration for each point.
A boolean value indicating whether the supplied data is discrete (TRUE
) or continuous (FALSE
).
The name of a custom palette from ArchRPalettes
to use for categorical/discrete color.
This argument is only used if discrete
is set to TRUE
.
The name of a custom palette from ArchRPalettes
to use for numeric color.
This argument is only used if discrete
is set to FALSE
.
A boolean value indicating whether the mean of each categorical/discrete color should be labeled.
A custom palette used to override discreteSet/continuousSet for coloring vector.
The default color for points that do not have another color applied (i.e. NA
values).
A integer vector describing which points to hightlight. The remainder of points will be colored light gray.
A boolean value indicating whether the density of points on the plot should be indicated by color.
If TRUE
, continuousSet is used as the color palette.
The numeric size of the points to be plotted.
A numeric vector of two values indicating the lower and upper bounds of the x-axis on the plot.
A numeric vector of two values indicating the lower and upper bounds of the y-axis on the plot.
A numeric value indicating the fraction to extend the x-axis and y-axis beyond the maximum and minimum
values if xlim
and ylim
are not provided. For example, 0.05 will extend the x-axis and y-axis by 5 percent on each end.
The label to plot for the x-axis.
The label to plot for the y-axis.
The title of the plot.
A boolean value indicating whether to randomize the order of the points when plotting.
A numeric seed number for use in randomization.
A title to be added to the legend if color
is supplied.
A vector that allows you to control the order of palette colors associated with the values in color
.
For example if you have color
as c("a","b","c")
and want to have the first color selected from the palette be used for
"c", the second color for "b", and the third color for "a", you would supply the colorOrder
as c("c", "b", "a")
.
A numeric vector of two values indicating the lower and upper bounds of colors if numeric. Values beyond these limits are thresholded.
A number indicating the transparency to use for each point. See ggplot2
for more details.
The base font size (in points) to use in the plot.
The size in inches to use for plotting the color legend.
The aspect ratio of the x and y axes on the plot.
A boolean indicating whether to label the color
input as a numeric factor (TRUE
) or with a character string (FALSE
).
The foreground color of the plot.
The background color of the plot.
The background relative width size of the halos in the labeling.
The numeric font size of labels.
A string indicating the method to use for adding a fit/regression line to the plot (see ggplot2::geom_smooth()
methods).
If set to NULL
, no fit/regression line is added.
A boolean value that indicates whether the plot should be rasterized using ggrastr
. This does not rasterize
lines and labels, just the internal portions of the plot.
The resolution in dots per inch to use for the plot.