plot_scatterplot | R Documentation |
Title
plot_scatterplot(
df,
x,
y,
across = NULL,
across.subset = NULL,
relevel = TRUE,
ncol = NULL,
nrow = NULL,
scales = "fixed",
space = "fixed",
pt.alpha = 0.9,
pt.clr = NA,
pt.color = "black",
pt.fill = "black",
pt.shape = 19,
pt.size = 1.5,
alpha.by = NULL,
color.aes = "color",
color.by = NULL,
color.trans = "identity",
order.by = NULL,
order.desc = FALSE,
shape.by = NULL,
size.by = NULL,
clrp = "milo",
clrp.adjust = NULL,
clrsp = "inferno",
display.smooth = FALSE,
smooth.alpha = 0.9,
smooth.color = "blue",
smooth.method = "lm",
smooth.se = FALSE,
smooth.size = 1,
smooth.type = "solid",
display.corr = FALSE,
corr.method = "pearson",
corr.p.min = 5e-05,
corr.pos.x = NULL,
corr.pos.y = NULL,
corr.text.sep = "\n",
corr.text.size = 1,
transform.with = NULL,
na.rm = FALSE,
use.scattermore = FALSE,
sctm.interpolate = FALSE,
sctm.pixels = c(512, 512),
clr.aes = NA,
clr.by = NA,
pt.clrp = NA,
...
)
df |
A data.frame. |
x , y |
Character value. Variable to be plotted on the respective axis. |
across |
Character value. Specifies the discrete variable in the data.frame across which the variables of interest are to be analyzed or displayed. |
across.subset |
Character vector. The groups of interest that the grouping variable
denoted in If there are more groups you are interested in than they are groups you are not interested in specify those that you are not interested in prefixed with an '-'. Variables prefixed that way are discarded and the remaining are kept. |
relevel |
Logical value. If set to TRUE the input order of |
scales , nrow , ncol |
Given to |
order.desc |
Logical value. If set to TRUE the way the points are ordered is reversed. |
clrp |
Character value. Specifies the color palette to be used to represent
groups of discrete variables. Run |
A ggplot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.