View source: R/visualization.R
SingleCorPlot | R Documentation |
A single correlation plot
SingleCorPlot(
data,
col.by = NULL,
cols = NULL,
pt.size = NULL,
smooth = FALSE,
rows.highlight = NULL,
legend.title = NULL,
na.value = "grey50",
span = NULL,
raster = NULL,
raster.dpi = NULL,
plot.cor = TRUE,
jitter = TRUE
)
data |
A data frame with two columns to be plotted |
col.by |
A vector or factor of values to color the plot by |
cols |
An optional vector of colors to use |
pt.size |
Point size for the plot |
smooth |
Make a smoothed scatter plot |
rows.highlight |
A vector of rows to highlight (like cells.highlight in
|
legend.title |
Optional legend title |
raster |
Convert points to raster format, default is |
raster.dpi |
the pixel resolution for rastered plots, passed to geom_scattermore(). Default is c(512, 512) |
plot.cor |
... |
jitter |
Jitter for easier visualization of crowded points |
A ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.