Create a scatter plot.
scatterPlot(
data,
x,
y,
col = "crimson",
size = 2,
xticks = NULL,
yticks = NULL,
xtitle = NULL,
xtitleFontSize = 16,
ytitle = NULL,
ytitleFontSize = 16,
title = NULL,
titleFontSize = 22,
stroke = NULL,
strokeWidth = NULL,
font = "Verdana, Geneva, Tahoma, sans-serif",
bgcol = "#CAD0D3",
opacity = 1,
axisCol = "black",
width = NULL,
height = NULL
)
The data frame containing the quantitative variables.
The x-variable to consider.
The y-variable to consider.
The color of the dots. Defaults to 'crimson'.
The size of the dots. Defaults to 2.
Optional. The number of x-axis ticks to consider.
Optional. The number of y-axis ticks to consider.
Optional. the title of the x-axis.
The font size of the x-axis title. Defaults to 16.
Optional. The title of the y-axis.
The font size of the y-axis title. Defaults to 16.
Optional. the title of the plot.
The font size of the plot title. Defaults to 22.
Optional. the stroke color of the dots.
Optional. the stroke width of the dots.
The font family to consider for the titles. Defaults to "Verdana, Geneva, Tahoma, sans-serif".
The background color of the SVG. Defaults to "#CAD0D3" HEX color.
The color opacity of the dots (from 0 to 1). Defaults to 1.
the color of the x and y axis. It includes the ticks, the labels and titles. Defaults to 'black'.
Optional. the width of the SVG output.
Optional. the height of the SVG output.
A SVG scatter plot.
scatterPlot(
data = mtcars,
x = "mpg",
y = "wt"
)